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