fix: use GOPROXY=direct in xcaddy build to bypass module proxy cache

This commit is contained in:
fuomag9
2026-02-23 20:44:24 +01:00
parent 4332e1acbc
commit 35471ec98c

View File

@@ -6,7 +6,8 @@ FROM golang:1.26 AS builder
RUN go install github.com/caddyserver/xcaddy/cmd/xcaddy@latest
# Build Caddy with plugins
RUN xcaddy build \
# GOPROXY=direct bypasses the module proxy cache so the latest commit is always fetched
RUN GOPROXY=direct xcaddy build \
--with github.com/caddy-dns/cloudflare \
--with github.com/mholt/caddy-l4 \
--with github.com/fuomag9/caddy-blocker-plugin \