fix: build Caddy with CF plugin from source (ARM64 compat)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Siavash Sameni
2026-03-30 10:14:33 +04:00
parent f33ac1cad8
commit 59d68b2a5e
2 changed files with 12 additions and 1 deletions

View File

@@ -0,0 +1,9 @@
# Caddy with Cloudflare DNS plugin — builds for any arch
FROM caddy:2-builder AS builder
RUN xcaddy build \
--with github.com/caddy-dns/cloudflare
FROM caddy:2
COPY --from=builder /usr/bin/caddy /usr/bin/caddy

View File

@@ -9,7 +9,9 @@
services:
# ─── Caddy reverse proxy (TLS termination) ───
caddy:
image: ghcr.io/caddy-dns/cloudflare:latest
build:
context: .
dockerfile: Dockerfile.caddy
restart: unless-stopped
ports:
- "80:80"