FROM caddy:builder AS builder RUN caddy-builder \ github.com/caddy-dns/cloudflare FROM caddy:2.0.0 COPY --from=builder /usr/bin/caddy /usr/bin/caddy LABEL maintainer "Fabian Stamm " # RUN apk add --no-cache \ # ca-certificates \ # git \ # mailcap \ # openssh-client \ # tzdata \ # bash \ # curl #Validate install RUN caddy version RUN caddy list-modules EXPOSE 80 443 2019 VOLUME [ "/data", "/config" ] WORKDIR /srv COPY Caddyfile /etc/Caddyfile CMD ["caddy", "run", "--config", "/etc/Caddyfile", "--adapter", "caddyfile"]