add missing depencies in Dockerfile

This commit is contained in:
clemens 2017-12-14 11:15:30 +01:00
parent b2565b2dc2
commit 02c7fe4d3e

View File

@ -1,9 +1,9 @@
FROM alpine:3.6 FROM alpine:3.6
RUN apk upgrade --update RUN apk upgrade --update && \
RUN apk add --update python3 apk add --update python3 py3-pillow py3-lxml && \
RUN apk add --update py3-pillow pip3 install django==1.11.7 django-jinja django-rest-framework django-analytical requests beautifulsoup4
RUN pip3 install django==1.11.7 django-jinja django-rest-framework django-analytical
ADD ["ofu_app", "/app"] ADD ["ofu_app", "/app"]
WORKDIR /app WORKDIR /app
EXPOSE 80 EXPOSE 80
VOLUME ["/app/db.sqlite"]
CMD ["python3", "manage.py", "runserver", "0.0.0.0:80"] CMD ["python3", "manage.py", "runserver", "0.0.0.0:80"]