source: OpenRLabs-Git/deploy/rlabs-docker/web2py-rlabs/docker/stack/web2py-gunicorn-nginx/web2py-gunicorn

main
Last change on this file was 42bd667, checked in by David Fuertes <dfuertes@…>, 4 years ago

Historial Limpio

  • Property mode set to 100755
File size: 474 bytes
Line 
1FROM python:2.7
2
3RUN apt update && apt install -y unzip wget
4
5ENV PATH=/usr/local/bin:$PATH
6
7RUN pip install gunicorn
8RUN useradd -m -r  web2py
9
10USER web2py
11
12WORKDIR /home/web2py
13
14RUN wget -c http://web2py.com/examples/static/web2py_src.zip && \
15 unzip -o web2py_src.zip && \
16 rm -f web2py_src.zip
17
18WORKDIR /home/web2py/web2py
19
20RUN cp handlers/wsgihandler.py .
21
22CMD /usr/local/bin/gunicorn --workers 4 --timeout=90 --graceful-timeout=10 --bind :9005 wsgihandler:application
Note: See TracBrowser for help on using the repository browser.