tested work Dockerfile with alpine base image cat << EOF > Dockerfile FROM alpine:latest
RUN apk add --no-cache git py3-pip gcc python3-dev musl-dev && \ 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 && \ 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 *note:* different from ubuntu or debian Dockerfile in github are : 1. ubuntu or debian execute : make test, while in alpine can not, because, in alpine can't start the service in background with : /usr/bin/memcached -u memcached &, while in ubuntu or debian execute with : service memcached start (make test required memcached service started) perhaps any other idea how to run service in background with the path in alpine ? ur welcome 2. pip3 install must use --user in alpine and add the $HOME/.local/bin in the path, while in ubuntu or debian unneccessary 3. touch apps/__init__.py is neccessary to run the web server, this is web3py/apps related, and not updated on github Dockerfile yet 4. want to update in github or create separate dockerfile base image ? 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/161bd0a9-c5e0-42a9-ade8-eeee0ce7379d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.