15 lines
354 B
Docker
15 lines
354 B
Docker
ARG CADDY_VERSION=2.9.1
|
|
|
|
FROM caddy:${CADDY_VERSION}-builder AS builder
|
|
|
|
RUN xcaddy build \
|
|
--with github.com/lucaslorentz/caddy-docker-proxy/v2 \
|
|
--with github.com/caddy-dns/cloudflare \
|
|
--with github.com/caddy-dns/route53
|
|
|
|
FROM caddy:${CADDY_VERSION}-alpine
|
|
|
|
COPY --from=builder /usr/bin/caddy /usr/bin/caddy
|
|
|
|
CMD ["caddy", "docker-proxy"]
|