From fed9459244a9b50d84edc06afaebaf88d7821164 Mon Sep 17 00:00:00 2001 From: MiFaZhan Date: Thu, 29 Oct 2026 13:42:19 +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 96f7950..cdec0a1 100644 --- a/build/Dockerfile +++ b/build/Dockerfile @@ -22,7 +22,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 EXPOSE 18510