th5/_dev/caddy/Dockerfile
2017-09-05 20:29:43 +01:00

19 lines
457 B
Docker

FROM scratch
# docker create -v /root/.caddy --name caddy-data caddy /bin/true
# docker run -d --restart always --volumes-from caddy-data -p 80:80 -p 443:443 caddy
# go get -d -v github.com/mholt/caddy/caddy
# GOOS=linux ../go.sh build -v -i github.com/mholt/caddy/caddy
ADD caddy caddy
ADD Caddyfile Caddyfile
ADD https://mkcert.org/generate/ /etc/ssl/certs/ca-certificates.crt
EXPOSE 80
EXPOSE 443
ENV TLSDEBUG error
ENV HOME /root/
CMD [ "/caddy" ]