move command in Dockerfile

This commit is contained in:
Nick Darrell 2023-10-04 13:19:23 +00:00
parent 0292c68abf
commit 566ee7bde9

View File

@ -4,7 +4,6 @@ ENV PIP_CONFIG_FILE pip.conf
RUN apt-get update RUN apt-get update
RUN apt-get -y install coinor-cbc RUN apt-get -y install coinor-cbc
RUN python -m pip install -r requirements.txt
RUN mkdir /app RUN mkdir /app
WORKDIR /app WORKDIR /app
@ -14,4 +13,6 @@ COPY . /app
WORKDIR /app/app WORKDIR /app/app
RUN python -m pip install -r requirements.txt
CMD [ "python", "main.py" ] CMD [ "python", "main.py" ]