github.com/Psiphon-Labs/tls-tris@v0.0.0-20230824155421-58bf6d336a9a/_dev/caddy/Dockerfile (about) 1 FROM scratch 2 3 # docker create -v /root/.caddy --name caddy-data caddy /bin/true 4 # docker run --restart=always -d --volumes-from caddy-data --link echo -p 80:80 -p 443:443 caddy 5 6 # GOOS=linux ../go.sh build -v -i github.com/mholt/caddy/caddy 7 ADD caddy caddy 8 ADD Caddyfile Caddyfile 9 ADD https://mkcert.org/generate/ /etc/ssl/certs/ca-certificates.crt 10 11 EXPOSE 80 12 EXPOSE 443 13 14 ENV TLSDEBUG short 15 ENV HOME /root/ 16 17 CMD [ "/caddy" ]