add some of server (diesel, eventlet, gevent, paste, twisted, waitress, wsgiref) in some os

This commit is contained in:
sugizo
2018-06-02 06:53:31 +07:00
parent 14083907e5
commit 3585ef828e
172 changed files with 3567 additions and 170 deletions
+27
View File
@@ -0,0 +1,27 @@
FROM opensuse:latest
#LABEL your_label
RUN zypper in -y python python-pip python-setuptools unzip wget python-paste && \
pip install --upgrade pip && \
pip install virtualenv
RUN groupadd -r web2py && \
useradd -m -r -g web2py web2py
USER web2py
RUN virtualenv /home/web2py && \
rm -rf /home/web2py/web2py && \
cd /home/web2py/ && \
rm -f web2py_src.zip && \
wget -c http://web2py.com/examples/static/web2py_src.zip && \
unzip -o web2py_src.zip && \
rm -rf /home/web2py/web2py/applications/examples && \
chmod 755 -R /home/web2py/web2py
WORKDIR /home/web2py/web2py
EXPOSE 8000
CMD . /home/web2py/bin/activate && /usr/bin/python /home/web2py/web2py/anyserver.py -s paste -i 0.0.0.0 -p 8000