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