From 94e472a6c4d661eac21be126aad8765957d66bd0 Mon Sep 17 00:00:00 2001 From: YGXB_net Date: Tue, 2 Sep 2025 21:24:50 +0800 Subject: [PATCH] =?UTF-8?q?build:=20Gitea=20Actions=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index b474659..cc45c89 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,7 +14,8 @@ WORKDIR /build COPY . . COPY --from=webBuilder /build/dist ./web/dist -RUN go mod tidy \ +RUN go env -w CGO_ENABLED=0 \ + && go mod tidy \ && go build -o dypid FROM alpine:latest @@ -27,9 +28,7 @@ RUN apk update \ && apk add --no-cache tzdata \ && cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \ && echo "Asia/Shanghai" > /etc/timezone \ - && apk del tzdata - -RUN date -R \ + && apk del tzdata \ && chmod +x /dypid ENTRYPOINT [ "/dypid" ] \ No newline at end of file