# Caddy with the caddy-dns/desec module, for ACME DNS-01 challenges against
# zones hosted at deSEC. Otherwise the stock caddy:2-alpine image.

FROM caddy:2-builder AS builder
RUN xcaddy build --with github.com/caddy-dns/desec

FROM caddy:2-alpine
COPY --from=builder /usr/bin/caddy /usr/bin/caddy
