diff --git a/docker/Dockerfile b/docker/Dockerfile new file mode 100644 index 0000000..7fd08bb --- /dev/null +++ b/docker/Dockerfile @@ -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