11 lines
296 B
Docker
11 lines
296 B
Docker
|
ARG CADDY_VERSION=latest
|
||
|
FROM caddy:${CADDY_VERSION}-builder AS builder
|
||
|
|
||
|
RUN xcaddy build \
|
||
|
--with github.com/lucaslorentz/caddy-docker-proxy/v2 \
|
||
|
--with github.com/caddy-dns/ovh
|
||
|
|
||
|
FROM caddy:${CADDY_VERSION}
|
||
|
COPY --from=builder /usr/bin/caddy /usr/bin/caddy
|
||
|
|
||
|
CMD ["caddy", "docker-proxy"]
|