Add workdir to dockerfile;
This commit is contained in:
parent
9c3640d25f
commit
120b235a3c
@ -2,10 +2,10 @@ FROM python:3-slim
|
|||||||
MAINTAINER Benjamin Bouvier <public@benj.me>
|
MAINTAINER Benjamin Bouvier <public@benj.me>
|
||||||
|
|
||||||
RUN mkdir /app
|
RUN mkdir /app
|
||||||
|
RUN apt update && \
|
||||||
|
apt install -y --force-yes libpq-dev build-essential
|
||||||
COPY . /app
|
COPY . /app
|
||||||
RUN cd /app && \
|
WORKDIR /app
|
||||||
apt update && \
|
RUN pip install -r requirements.txt
|
||||||
apt install -y --force-yes libpq-dev build-essential && \
|
|
||||||
pip install -r requirements.txt
|
|
||||||
|
|
||||||
CMD ["python", "/app/main.py"]
|
CMD ["python", "/app/main.py"]
|
||||||
|
Loading…
Reference in New Issue
Block a user