From 7ea6fc226eee3d646880dfe31f0c22d7fb9123d3 Mon Sep 17 00:00:00 2001 From: shanshanzhong Date: Mon, 28 Jul 2025 06:56:07 -0700 Subject: [PATCH] =?UTF-8?q?refactor(Dockerfile):=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E6=97=B6=E5=8C=BA=E6=96=87=E4=BB=B6=E6=8B=B7=E8=B4=9D=E5=B9=B6?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将单个时区文件拷贝改为拷贝整个时区目录,提高可维护性 添加时区设置的环境变量注释 --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 118076e..3958b33 100644 --- a/Dockerfile +++ b/Dockerfile @@ -28,8 +28,9 @@ FROM scratch # Copy CA certificates and timezone data COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ -COPY --from=builder /usr/share/zoneinfo/Asia/Shanghai /usr/share/zoneinfo/Asia/Shanghai +COPY --from=builder /usr/share/zoneinfo /usr/share/zoneinfo +# Set Shanghai timezone ENV TZ=Asia/Shanghai # Set working directory and copy binary