From 32e4316ee4066f12e0486144c977df3e7515d75b Mon Sep 17 00:00:00 2001 From: MiFaZhan Date: Thu, 29 Oct 2026 13:42:18 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=88=A0=E9=99=A4=E4=BB=8E=20builder=20?= =?UTF-8?q?=E6=8B=B7=E8=B4=9D=20zoneinfo=20=E7=9A=84=E6=8C=87=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 原 Dockerfile 依赖私有基础镜像预装的 tzdata;换成公共 golang:alpine 后 builder 阶段不存在 /usr/share/zoneinfo/Asia/Shanghai,构建报 'failed to compute cache key: not found'。 runtime 阶段已 apk add tzdata + ENV TZ=Asia/Shanghai,该 COPY 多余,直接删除。 --- build/Dockerfile | 1 - 1 file changed, 1 deletion(-) diff --git a/build/Dockerfile b/build/Dockerfile index 694305e..9e46d1d 100644 --- a/build/Dockerfile +++ b/build/Dockerfile @@ -23,7 +23,6 @@ FROM alpine:3.23 RUN apk add --no-cache ca-certificates tzdata -COPY --from=builder /usr/share/zoneinfo/Asia/Shanghai /usr/share/zoneinfo/Asia/Shanghai ENV TZ=Asia/Shanghai WORKDIR /app