mainqndtest
v1.1.1
Last change
on this file since 42095c5 was
42bd667,
checked in by David Fuertes <dfuertes@…>, 4 years ago
|
Historial Limpio
|
-
Property mode set to
100755
|
File size:
710 bytes
|
Rev | Line | |
---|
[42bd667] | 1 | FROM opensuse:latest |
---|
| 2 | |
---|
| 3 | #LABEL your_label |
---|
| 4 | |
---|
| 5 | RUN zypper in -y python python-pip python-setuptools unzip wget python-gevent && \ |
---|
| 6 | pip install --upgrade pip && \ |
---|
| 7 | pip install virtualenv |
---|
| 8 | |
---|
| 9 | RUN groupadd -r web2py && \ |
---|
| 10 | useradd -m -r -g web2py web2py |
---|
| 11 | |
---|
| 12 | USER web2py |
---|
| 13 | |
---|
| 14 | RUN virtualenv /home/web2py && \ |
---|
| 15 | rm -rf /home/web2py/web2py && \ |
---|
| 16 | cd /home/web2py/ && \ |
---|
| 17 | rm -f web2py_src.zip && \ |
---|
| 18 | wget -c http://web2py.com/examples/static/web2py_src.zip && \ |
---|
| 19 | unzip -o web2py_src.zip && \ |
---|
| 20 | rm -rf /home/web2py/web2py/applications/examples && \ |
---|
| 21 | chmod 755 -R /home/web2py/web2py |
---|
| 22 | |
---|
| 23 | WORKDIR /home/web2py/web2py |
---|
| 24 | |
---|
| 25 | EXPOSE 8000 |
---|
| 26 | |
---|
| 27 | CMD . /home/web2py/bin/activate && /usr/bin/python /home/web2py/web2py/anyserver.py -s gevent -i 0.0.0.0 -p 8000 |
---|
Note: See
TracBrowser
for help on using the repository browser.