custom-dockerfile/caddy/Dockerfile

20 lines
513 B
Docker
Raw Permalink Normal View History

2024-12-15 11:40:02 -05:00
FROM caddy:2.9-builder AS builder
2024-11-04 20:48:13 -05:00
RUN xcaddy build \
--with github.com/caddyserver/nginx-adapter \
--with github.com/caddy-dns/cloudflare \
--with github.com/caddyserver/replace-response \
--with github.com/mholt/caddy-webdav \
--with github.com/mholt/caddy-ratelimit \
--with github.com/WeidiDeng/caddy-cloudflare-ip \
--with github.com/porech/caddy-maxmind-geolocation \
2024-11-04 21:08:17 -05:00
--with github.com/mholt/caddy-l4
2024-11-04 20:48:13 -05:00
FROM caddy:latest
COPY --from=builder /usr/bin/caddy /usr/bin/caddy