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:
9
warzone/deploy/docker/Dockerfile.caddy
Normal file
9
warzone/deploy/docker/Dockerfile.caddy
Normal 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
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user