after learn the code *web3py/web3py/core.py*
python3 /web3py/web3py-start /web3py/applications/ is automatically run the 
address 127.0.0.1:8000
so the correct one to make it run on docker should use :
python3 /web3py/web3py-start /web3py/applications/ --address 0.0.0.0:8000

think there are two options
first change the default address on core.py
*from*
parser.add_argument('--address', default='127.0.0.1:8000',help='serving 
address')

*into*
parser.add_argument('--address', default='0.0.0.0:8000',help='serving 
address')

*or second choice*
change the CMD path for docker and add the parameter address
python3 /web3py/web3py-start /web3py/applications/ --address 0.0.0.0:8000

so Dockerfile tested work
cat << EOF > Dockerfile
FROM ubuntu:latest

RUN apt update && \
 apt install -y git python3-pip && \
 cd / && \
 git clone https://github.com/web2py/web3py && \
 cd web3py && \
 pip3 install -r requirements.txt

WORKDIR /web3py

CMD python3 /web3py/web3py-start /web3py/applications/ --address 0.0.0.0:
8000

EXPOSE 8000

EOF
docker build -t test/web3py_cook .
docker run -d \
 -p 8000:8000 \
 --name web3py_cook \
 test/web3py_cook
docker ps -a

for docker image base, python image base take > 200 mb while another os < 
100 mb, your choice.

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.

Reply via email to