2020-02-02 18:21:44 +01:00
|
|
|
#
|
|
|
|
# DOWNLOAD
|
|
|
|
#
|
|
|
|
FROM alpine:3.11 as download
|
2019-10-21 21:57:02 +02:00
|
|
|
|
2020-02-02 18:21:44 +01:00
|
|
|
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 <carsten.sprung@csprung.de>"
|
|
|
|
|
|
|
|
# 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"]
|