From d0557f6c73fd2cad939405adf19855ce5fc6e75f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=96=8C?= <259278618@qq.com> Date: Mon, 8 Jun 2026 16:54:12 +0800 Subject: [PATCH] =?UTF-8?q?ci/cd=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/Dockerfile b/Dockerfile index c2ff48b..e05c4c0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,24 +16,12 @@ ENV GOPRIVATE=gitea.com/red-future/common RUN git config --global url."http://x-token-auth:9b31146aa8c10a7cb4f2e49dcee0934a223be1076289810e1ad98b968066c2bc@116.204.74.41:3000/red-future/common.git".insteadOf "https://gitea.com/red-future/common.git" && \ git config --global credential.helper store -WORKDIR /build +WORKDIR /app COPY . . RUN go mod download && go mod tidy -RUN go build -ldflags="-s -w" -o main ./main.go - -# 阶段2: 运行 -FROM alpine:3.19 - -RUN apk add --no-cache ca-certificates tzdata - -ENV TZ=Asia/Shanghai -RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone - -WORKDIR /app - # 复制预构建的二进制文件和配置文件 COPY app ./main COPY manifest/config/config.yaml ./manifest/config/config.yaml