From 120b235a3cf9187d01b6181ffefa33d78d1b290b Mon Sep 17 00:00:00 2001 From: Benjamin Bouvier Date: Sat, 30 Dec 2017 19:04:00 +0100 Subject: [PATCH] Add workdir to dockerfile; --- Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index ac8a6a5..277cacc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,10 +2,10 @@ FROM python:3-slim MAINTAINER Benjamin Bouvier RUN mkdir /app +RUN apt update && \ + apt install -y --force-yes libpq-dev build-essential COPY . /app -RUN cd /app && \ - apt update && \ - apt install -y --force-yes libpq-dev build-essential && \ - pip install -r requirements.txt +WORKDIR /app +RUN pip install -r requirements.txt CMD ["python", "/app/main.py"]