*Dockerfile* # please change : # password.txt with your desire filename # password_admin with your desire password admin # 8000 with your available port
FROM ubuntu:latest RUN apt update && \ apt install -y git python3-pip python-pip memcached && \ service memcached restart RUN groupadd -r web3py && \ useradd -m -r -g web3py web3py USER web3py RUN rm -rf /home/web3py/web3py && \ cd /home/web3py/ && \ git clone https://github.com/web2py/web3py && \ cd web3py && \ pip3 install pytest mechanize twine && \ pip3 install -U -r requirements.txt && \ make test && \ python3 -c "from pydal.validators import CRYPT; open('password.txt','w').write(str(CRYPT()('password_admin' )[0] ) )" && \ mkdir apps/examples/databases WORKDIR /home/web3py/web3py EXPOSE 8000 CMD ["./web3py-start", "-p", "./password.txt", "-a", "0.0.0.0:8000", "./apps"] *steps to run from Dockerfile (different from prev message)* cat << EOF > Dockerfile # please change : # password.txt with your desire filename # password_admin with your desire password admin # 8000 with your available port FROM ubuntu:latest RUN apt update && \ apt install -y git python3-pip python-pip memcached && \ service memcached restart RUN groupadd -r web3py && \ useradd -m -r -g web3py web3py USER web3py RUN rm -rf /home/web3py/web3py && \ cd /home/web3py/ && \ git clone https://github.com/web2py/web3py && \ cd web3py && \ pip3 install pytest mechanize twine && \ pip3 install -U -r requirements.txt && \ make test && \ python3 -c "from pydal.validators import CRYPT; open('password.txt','w').write(str(CRYPT()('password_admin' )[0] ) )" && \ mkdir apps/examples/databases WORKDIR /home/web3py/web3py EXPOSE 8000 CMD ["./web3py-start", "-p", "./password.txt", "-a", "0.0.0.0:8000", "./apps"] EOF cat Dockerfile docker build -t test/ubuntu-web3py . docker run -d \ -v apps:/home/web3py/web3py/apps \ -p 8000:8000 \ --name ubuntu-web3py \ test/ubuntu-web3py docker ps docker run -it --privileged test/ubuntu-web3py /bin/bash submited pr for dockerfile 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. To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/e48d9947-2fd9-44ed-8e77-0c090d55f53c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.