tested work Dockerfile alpine base image while execute 'make test', never 
thought the service started itself after installed, checked using service 
command in package openrc
cat << EOF > Dockerfile
FROM alpine:latest

RUN apk add --no-cache git py3-pip gcc python3-dev musl-dev memcached 
openrc make && \
 addgroup -S web3py && \
 adduser -D -G web3py web3py

USER web3py

RUN rm -rf /home/web3py/web3py && \
 cd /home/web3py && \
 export PATH="\$PATH:\$HOME/.local/bin" && \
 git clone https://github.com/web2py/web3py && \
 cd web3py && \
 pip3 install -U --user pytest mechanize twine && \
 pip3 install -U --user -r requirements.txt && \
 make test && \
 python3 -c "from pydal.validators import CRYPT; 
open('password.txt','w').write(str(CRYPT()('password_admin' )[0] ) )" && \
 mkdir apps/_scaffold/databases && \
 mkdir apps/examples/databases && \
 touch apps/__init__.py

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 alpine/web3py .
docker run -d \
 -p 8000:8000 \
 --name web3py \
 alpine/web3py

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/8f350573-be1a-44b9-be67-b0e16f784ab8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to