xcaddy build with caddy-dns/cloudflare for DNS-01 TLS. Host network mode so Caddy can reach other Docker stacks on localhost. Designed as general reverse proxy — add new site blocks to Caddyfile for future services. Deployed to dockerhost:/home/stephan/stacks/caddy/ Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
6 lines
161 B
Docker
6 lines
161 B
Docker
FROM caddy:builder AS builder
|
|
RUN xcaddy build \
|
|
--with github.com/caddy-dns/cloudflare
|
|
|
|
FROM caddy:latest
|
|
COPY --from=builder /usr/bin/caddy /usr/bin/caddy
|