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