Dockerfile (view raw)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | ARG CADDY_VERSION=2.11.3
FROM caddy:${CADDY_VERSION}-builder-alpine AS builder
RUN xcaddy build \
--with github.com/caddyserver/cache-handler \
--with github.com/darkweak/storages/otter/caddy \
--with github.com/pberkel/caddy-storage-redis \
--with github.com/caddy-dns/rfc2136 \
--with github.com/jarv/caddy-goatcounter \
--with github.com/mholt/caddy-ratelimit
FROM caddy:${CADDY_VERSION}-alpine AS runner
COPY --from=builder /usr/bin/caddy /usr/bin/caddy
COPY Caddyfile .
CMD [ "/usr/bin/caddy", "run" ]
|