# # DOWNLOAD # FROM alpine:3.11 as download ADD https://caddyserver.com/download/linux/amd64?plugins=http.git&license=personal&telemetry=off /caddy.tar.gz RUN tar -vxzf /caddy.tar.gz # # CADDY # FROM alpine:3.11 LABEL maintainer "Carsten Sprung " # Telemetry Stats ENV ENABLE_TELEMETRY="false" RUN apk add --no-cache \ ca-certificates \ git \ mailcap \ openssh-client \ tzdata \ hugo COPY --from=download /caddy /usr/bin/caddy # validate install RUN /usr/bin/caddy -version RUN /usr/bin/caddy -plugins EXPOSE 80 443 2015 WORKDIR /srv ENTRYPOINT ["/usr/bin/caddy"] CMD ["--conf", "/etc/Caddyfile", "--env", "--log", "stdout", "--agree=true", "--disable-tls-alpn-challenge"]