trying to modify but got another error *e.g.* *step i took on play-with-docker.com* cat <<EOF > Dockerfile FROM python:2.7 RUN apt update && \ apt install -y unzip wget gunicorn RUN groupadd -r web2py && \ useradd -m -r -g web2py web2py USER web2py RUN cd /home/web2py/ && \ 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 # modified* EXPOSE 80 *CMD . /home/web2py/web2py/anyserver.py -s gunicorn -i 0.0.0.0 -p 80** # modified* EOF docker build . docker images docker run -p 3001:80 imageid* # same result* docker run -p 80:80 imageid* # same result*
*result* /bin/sh: 10: /home/web2py/web2py/anyserver.py: This file is part of the web2py Web Framework Copyrighted by Massimo Di Pierro <mdipie...@cs.depaul.edu> License: LGPLv3 (http://www.gnu.org/licenses/lgpl.html) This file is based, although a rewrite, on MIT-licensed code from the Bottle web framework. : not found import: unable to open X server `' @ error/import.c/ImportImageCommand/364. import: unable to open X server `' @ error/import.c/ImportImageCommand/364. import: unable to open X server `' @ error/import.c/ImportImageCommand/364. import: unable to open X server `' @ error/import.c/ImportImageCommand/364. fyi, the python:2.7 dockerfile is work when using default rocket web server (different from above just install the gunicorn package and the cmd to execute the server) tested to map the port 3001 and 80 from example above got the same result any idea ? thanks and best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.