fix: set GOPROXY to goproxy.cn for Go module downloads
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/tag/build Pipeline is running

proxy.golang.org is not reachable from this server; use goproxy.cn mirror.
This commit is contained in:
becomer
2026-07-01 00:39:04 +08:00
parent 1228c30a75
commit e3f8dc8aac
+1
View File
@@ -1,5 +1,6 @@
FROM golang:1.25-alpine AS backend-builder FROM golang:1.25-alpine AS backend-builder
WORKDIR /build WORKDIR /build
ENV GOPROXY=https://goproxy.cn,direct
COPY . . COPY . .
RUN go build -ldflags="-s -w" -o bin/server RUN go build -ldflags="-s -w" -o bin/server