FROM caddy:2.7.2-builder-alpine@sha256:eddeb3bb38ff251025328478ee47c27e35f8e85ee516c1392cae5aa897d232da AS builder RUN xcaddy build --with github.com/lucaslorentz/caddy-docker-proxy/v2 FROM caddy:2.7.2-alpine@sha256:f5f7505e3a6b712e21e6f11fae5d79ed3ec6fee9bd4039c0b62c39511a205d9b COPY --from=builder /usr/bin/caddy /usr/bin/caddy CMD ["caddy", "docker-proxy", "--ingress-networks=caddy"]