Dockerfile
This commit is contained in:
parent
5d4d9d3e33
commit
753a470f0d
10
docker/Dockerfile
Normal file
10
docker/Dockerfile
Normal 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
|
Loading…
Reference in New Issue
Block a user