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