Files
docker-caddy/Dockerfile
Roman Vanicek ac89a55e91
All checks were successful
continuous-integration/drone/push Build is passing
Switch to alpine
2026-05-05 21:57:06 +02:00

11 lines
352 B
Docker

# Use the official Caddy builder
FROM caddy:builder-alpine AS builder
# Build Caddy with the Layer 4 module included
RUN xcaddy build \
--with github.com/mholt/caddy-l4 \
--with github.com/caddyserver/jsonc-adapter
# Pull the compiled binary into the final lightweight image
FROM caddy:alpine
COPY --from=builder /usr/bin/caddy /usr/bin/caddy