From d35dfba89518b1363865759fbacc99db081baf27 Mon Sep 17 00:00:00 2001 From: Song367 <601337784@qq.com> Date: Wed, 18 Jun 2025 13:40:53 +0800 Subject: [PATCH] =?UTF-8?q?dockerfile=20=E6=B7=BB=E5=8A=A0=E4=BB=A3?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index aa543ef..b2bb62c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,6 +6,9 @@ WORKDIR /usr/src/app # 安装必要的构建工具 RUN apk add --no-cache gcc musl-dev +# 设置 GOPROXY 环境变量 +ENV GOPROXY=https://goproxy.cn,direct + # 复制 Go 项目文件 COPY . .