Files
caddy-desec-docker/Dockerfile
T

13 lines
529 B
Docker
Raw Normal View History

2026-10-07 17:13:53 +01:00
# Caddy with the caddy-dns/desec module, for ACME DNS-01 challenges against
# zones hosted at deSEC. Otherwise the stock caddy:2-alpine image.
# The builder runs on the build host and cross-compiles for the target
# platform, so multi-platform builds need no emulation.
FROM --platform=$BUILDPLATFORM caddy:2-builder AS builder
ARG TARGETOS TARGETARCH
RUN CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH \
xcaddy build --with github.com/caddy-dns/desec
2026-10-07 17:13:53 +01:00
FROM caddy:2-alpine
COPY --from=builder /usr/bin/caddy /usr/bin/caddy