Dockerfile

This commit is contained in:
Denis Zheleztsov 2017-10-10 17:57:15 +03:00
parent 5d4d9d3e33
commit 753a470f0d

10
docker/Dockerfile Normal file
View File

@ -0,0 +1,10 @@
FROM alpine
RUN apk update && apk add python py2-pip py-gunicorn py-pillow py2-futures
RUN pip install django==1.11.6
COPY . /app
RUN cd /app && python manage.py migrate
ENTRYPOINT cd /app && gunicorn --threads 2 imagehost.wsgi:application --bind 0.0.0.0:8080 -t 60 --max-requests 1000