commit bc814e85ef769aa269692f4459f74f2003edc4ca Author: Fabian Stamm Date: Sat Dec 14 20:13:41 2019 +0100 First Commit diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..d2e15f3 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,29 @@ +FROM alpine:3.10 + +LABEL maintainer "Fabian Stamm " + +ENV ACME_AGREE="true" +ENV EMAIL="" + + +RUN apk add --no-cache \ + ca-certificates \ + git \ + mailcap \ + openssh-client \ + tzdata \ + bash \ + curl + +RUN curl https://getcaddy.com | bash -s personal http.cors,http.ratelimit,tls.dns.cloudflare + +#Validate install +RUN caddy -version +RUN caddy -plugins + +EXPOSE 80 443 + +VOLUME [ "/root/.caddy", "/src" ] +WORKDIR /srv + +CMD ["caddy", "--conf", "/etc/Caddyfile", "--log", "stdout", "--agree=$ACME_AGREE", "--email=$EMAIL"] \ No newline at end of file