compared the lightweight between alpine, ubuntu n debian, results are : *alpine (around 300mb) < ubuntu** (around 700mb)** < debian** (around 700mb)* $ docker history alpine/web3py IMAGE CREATED CREATED BY SIZE COMMENT 55fe7b3c18bf 38 seconds ago /bin/sh -c #(nop) CMD ["./web3py-start" "-p… 0B 11963850a68b 38 seconds ago /bin/sh -c #(nop) EXPOSE 8000 0B 81ccd5d75ac2 38 seconds ago /bin/sh -c #(nop) WORKDIR /home/web3py/web3py 0B d22d1bcb98d4 39 seconds ago /bin/sh -c rm -rf /home/web3py/web3py && cd… 83.3MB 3ed853d7f485 2 minutes ago /bin/sh -c #(nop) USER web3py 0B ac5d2ae76dc0 2 minutes ago /bin/sh -c apk add --no-cache git py3-pip gc… 215MB 4d90542f0623 2 days ago /bin/sh -c #(nop) CMD ["/bin/sh"] 0B <missing> 2 days ago /bin/sh -c #(nop) ADD file:fef3b00b3ae63967d… 5.58MB $ docker history ubuntu/web3py IMAGE CREATED CREATED BY SIZE COMMENT 5915652d659c 1 second ago /bin/sh -c #(nop) CMD ["./web3py-start" "-p… 0B efaa28db03b1 2 seconds ago /bin/sh -c #(nop) EXPOSE 8000 0B 7776a0d48c7b 2 seconds ago /bin/sh -c #(nop) WORKDIR /home/web3py/web3py 0B 4ed2500a0ead 2 seconds ago /bin/sh -c rm -rf /home/web3py/web3py && cd… 90.1MB a70df4454355 35 seconds ago /bin/sh -c #(nop) USER web3py 0B 86376b788526 36 seconds ago /bin/sh -c apt update && apt install -y git… 529MB 4c108a37151f 3 days ago /bin/sh -c #(nop) CMD ["/bin/bash"] 0B <missing> 3 days ago /bin/sh -c mkdir -p /run/systemd && echo 'do… 7B <missing> 3 days ago /bin/sh -c set -xe && echo '#!/bin/sh' > /… 745B <missing> 3 days ago /bin/sh -c [ -z "$(apt-get indextargets)" ] 987kB <missing> 3 days ago /bin/sh -c #(nop) ADD file:4e6b5d9ca371eb881… 63.2MB $ docker history debian/web3py IMAGE CREATED CREATED BY SIZE COMMENT fdf71e00b1b9 6 seconds ago /bin/sh -c #(nop) CMD ["./web3py-start" "-p… 0B f4f5f5d3be08 6 seconds ago /bin/sh -c #(nop) EXPOSE 8000 0B bc04fba30386 6 seconds ago /bin/sh -c #(nop) WORKDIR /home/web3py/web3py 0B 261c6fc06718 7 seconds ago /bin/sh -c rm -rf /home/web3py/web3py && cd… 90.7MB 2940c010507b 43 seconds ago /bin/sh -c #(nop) USER web3py 0B d7125603a139 45 seconds ago /bin/sh -c apt update && apt install -y git… 536MB e1de74e67cc7 11 days ago /bin/sh -c #(nop) CMD ["bash"] 0B <missing> 11 days ago /bin/sh -c #(nop) ADD file:6e8620824300ccf37… 101MB
Dockerfile for alpine is same like prev msg, while ubuntu n debian is alike the alpine (modified from github), ubuntu n debian steps is same just base image is different cat << EOF > Dockerfile FROM debian:latest RUN apt update && \ apt install -y git python3-pip python-pip memcached && \ service memcached restart && \ 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/_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 debian/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/69b3e9cc-c169-4cff-b316-38f5ae3488de%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.