# Custom Caddy with the Gandi DNS-01 provider (ADR-024). Built locally (make caddy-image)
# and on askari by the reverse_proxy role (askari can't reach the internal registry
# pre-mesh, so the image is built on the host).
FROM caddy:2-builder AS build
RUN xcaddy build --with github.com/caddy-dns/gandi

FROM caddy:2
COPY --from=build /usr/bin/caddy /usr/bin/caddy
