2024-12-19 17:34:32 +01:00
|
|
|
ARG CADDY_VERSION=2.8
|
|
|
|
FROM caddy:${CADDY_VERSION}-builder-alpine AS builder
|
|
|
|
|
|
|
|
RUN xcaddy build \
|
|
|
|
--with github.com/lucaslorentz/caddy-docker-proxy/v2 \
|
2024-12-20 11:12:06 +01:00
|
|
|
--with github.com/mholt/caddy-l4 \
|
|
|
|
--with github.com/corazawaf/coraza-caddy/v2
|
2024-12-19 17:34:32 +01:00
|
|
|
|
|
|
|
FROM caddy:${CADDY_VERSION}-alpine
|
|
|
|
|
|
|
|
COPY --from=builder /usr/bin/caddy /usr/bin/caddy
|
|
|
|
|
|
|
|
CMD ["caddy", "docker-proxy"]
|
|
|
|
|