reworked docker file for faster build times

This commit is contained in:
Joachim Lusiardi 2016-04-13 08:30:13 +02:00
parent a12d5f541b
commit 8f99b798bb
1 changed files with 4 additions and 2 deletions

View File

@ -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