From c5173efb451590bb918485b9aaa902ece49fc77d Mon Sep 17 00:00:00 2001 From: lxh2875931338 Date: Fri, 24 Jul 2026 21:33:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96dockerfile=E9=83=A8=E7=BD=B2?= =?UTF-8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 1 + deploy.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 6d58b32..a097e72 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,6 +7,7 @@ WORKDIR /app # 复制依赖文件 COPY go.mod go.sum ./ +RUN go env -w GOPROXY=https://goproxy.cn,direct RUN go mod download # 复制源码(确保 bin/ 和 static/ 目录存在) diff --git a/deploy.sh b/deploy.sh index 1070a85..a12f6b3 100644 --- a/deploy.sh +++ b/deploy.sh @@ -24,7 +24,7 @@ DEPLOY_DIR="/opt/frpc-console" DATA_DIR="${DEPLOY_DIR}/data" DEFAULT_PORT=9300 IMAGE_NAME="frpc-console" -GO_VERSION="1.21.5" +GO_VERSION="1.25.0" # ---------- 打印函数 ---------- print_info() { echo -e "${BLUE}[INFO]${NC} $1"; }