From 3a8b608449cb94cacbaba7fdb31ccbb54b0f921d Mon Sep 17 00:00:00 2001 From: yuxuanhui Date: Tue, 29 Sep 2026 19:28:22 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=20Dockerfile?= =?UTF-8?q?=EF=BC=8C=E6=B7=BB=E5=8A=A0=20GOPROXY=20=E7=8E=AF=E5=A2=83?= =?UTF-8?q?=E5=8F=98=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/Dockerfile b/backend/Dockerfile index 9a220a7..f536ccd 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -1,6 +1,7 @@ FROM golang:1.26-alpine AS builder WORKDIR /src COPY go.mod go.sum ./ +ENV GOPROXY=https://goproxy.cn RUN go mod download COPY . . RUN CGO_ENABLED=0 go build -trimpath -ldflags="-s -w" -o /out/api ./cmd/server