<reponame>jorgejesus/pywps-flask<filename>docker/alpine/gunicorn/Dockerfile<gh_stars>0
FROM pywps/flask-alpine:3.6
MAINTAINER <NAME> <<EMAIL>>

#For Gunicorn
ARG GU_WORKERS=5
ENV GU_WORKERS=${GU_WORKERS}
ARG GU_PORT=8081
ENV GU_PORT=${GU_PORT}


COPY run_all.sh /run_all.sh

#For pywps
RUN pip3 install gunicorn
RUN ln -s /pywps-flask/wsgi/pywps.wsgi  /pywps-flask/wsgi/pywps_app.py


ENTRYPOINT ["/run_all.sh"]

#Build: docker build -t pywps4:gunicorn .
#Usage: docker run -p 8081:8081 -it pywps4:nginx
#Usage w/ 10 workers: docker run -e GU_WORKERS=10 -e GU_PORT=8082  -p 8082:8082 -it pywps4:gunicorn

