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 | |
---|
1 | FROM python:2.7 |
---|
2 | |
---|
3 | RUN apt update && apt install -y unzip wget |
---|
4 | |
---|
5 | ENV PATH=/usr/local/bin:$PATH |
---|
6 | |
---|
7 | RUN pip install gunicorn |
---|
8 | RUN useradd -m -r web2py |
---|
9 | |
---|
10 | USER web2py |
---|
11 | |
---|
12 | WORKDIR /home/web2py |
---|
13 | |
---|
14 | RUN wget -c http://web2py.com/examples/static/web2py_src.zip && \ |
---|
15 | unzip -o web2py_src.zip && \ |
---|
16 | rm -f web2py_src.zip |
---|
17 | |
---|
18 | WORKDIR /home/web2py/web2py |
---|
19 | |
---|
20 | RUN cp handlers/wsgihandler.py . |
---|
21 | |
---|
22 | CMD /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.