19 lines
457 B
Docker
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" ]
|