14 lines
311 B
Docker
14 lines
311 B
Docker
ARG CADDY_VERSION=2.8
|
|
FROM caddy:${CADDY_VERSION}-builder-alpine AS builder
|
|
|
|
RUN xcaddy build \
|
|
--with github.com/lucaslorentz/caddy-docker-proxy/v2 \
|
|
--with github.com/mholt/caddy-l4
|
|
|
|
FROM caddy:${CADDY_VERSION}-alpine
|
|
|
|
COPY --from=builder /usr/bin/caddy /usr/bin/caddy
|
|
|
|
CMD ["caddy", "docker-proxy"]
|
|
|