From db68283b3bea8924b329129ea7fd58ff03d3afc6 Mon Sep 17 00:00:00 2001 From: danial Date: Tue, 25 Nov 2025 21:41:51 +0800 Subject: [PATCH] =?UTF-8?q?chore(docker):=20=E4=BC=98=E5=8C=96=E6=9E=84?= =?UTF-8?q?=E5=BB=BA=E7=8E=AF=E5=A2=83=E5=8F=98=E9=87=8F=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除旧的 GOPROXY 环境变量设置 - 添加 CGO_ENABLED=0 配置以禁用 CGO - 设置目标操作系统为 linux - 设置目标架构为 amd64 --- deploy/Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/deploy/Dockerfile b/deploy/Dockerfile index f4cb879..2b76e37 100644 --- a/deploy/Dockerfile +++ b/deploy/Dockerfile @@ -7,8 +7,7 @@ WORKDIR /build COPY .. /build/ # 根据USE_PROXY参数设置环境变量 -RUN export GOPROXY=https://goproxy.cn,direct; \ - export GO111MODULE=on \ +RUN export GO111MODULE=on \ && export CGO_ENABLED=0 \ && export GOOS=linux \ && export GOARCH=amd64 \