2016-11-03 21:13:18 +00:00
|
|
|
FROM scratch
|
|
|
|
|
|
|
|
# docker create -v /root/.caddy --name caddy-data caddy /bin/true
|
2017-03-08 15:44:37 +00:00
|
|
|
# docker run --restart=always -d --volumes-from caddy-data --link echo -p 80:80 -p 443:443 caddy
|
2016-11-03 21:13:18 +00:00
|
|
|
|
|
|
|
# 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
|
|
|
|
|
2017-02-14 22:47:21 +00:00
|
|
|
ENV TLSDEBUG short
|
2016-11-03 21:13:18 +00:00
|
|
|
ENV HOME /root/
|
|
|
|
|
|
|
|
CMD [ "/caddy" ]
|