reworked docker file for faster build times
This commit is contained in:
parent
a12d5f541b
commit
8f99b798bb
|
@ -1,9 +1,11 @@
|
||||||
FROM debian8_python3
|
FROM debian8_python3
|
||||||
|
|
||||||
ADD app /app
|
COPY app/requirements.txt /requirements.txt
|
||||||
RUN pip3 install -r /app/requirements.txt; \
|
RUN pip3 install -r /requirements.txt; \
|
||||||
mkdir /data
|
mkdir /data
|
||||||
|
|
||||||
|
ADD app /app
|
||||||
|
|
||||||
VOLUME ["/data"]
|
VOLUME ["/data"]
|
||||||
EXPOSE 5000
|
EXPOSE 5000
|
||||||
ENTRYPOINT python3 /app/main.py
|
ENTRYPOINT python3 /app/main.py
|
||||||
|
|
Loading…
Reference in New Issue