From 8f99b798bb5b3b2bf46511f2477e7b7dac8f541f Mon Sep 17 00:00:00 2001 From: Joachim Lusiardi Date: Wed, 13 Apr 2016 08:30:13 +0200 Subject: [PATCH] reworked docker file for faster build times --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1c82b2f..08db488 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,11 @@ FROM debian8_python3 -ADD app /app -RUN pip3 install -r /app/requirements.txt; \ +COPY app/requirements.txt /requirements.txt +RUN pip3 install -r /requirements.txt; \ mkdir /data +ADD app /app + VOLUME ["/data"] EXPOSE 5000 ENTRYPOINT python3 /app/main.py