From 32f52067c037d0a10ded31fe5ff08262f32e9388 Mon Sep 17 00:00:00 2001 From: honeok Date: Fri, 3 Oct 2025 09:33:12 +0800 Subject: [PATCH] fix: embed tzdata to correct container timezone (#1126) Signed-off-by: honeok --- Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4cbce7e..f270900 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,13 @@ -FROM alpine AS certs -RUN apk update && apk add ca-certificates +FROM alpine AS depend +RUN apk add --update --no-cache ca-certificates tzdata FROM busybox:stable-musl ARG TARGETOS ARG TARGETARCH -COPY --from=certs /etc/ssl/certs /etc/ssl/certs +COPY --from=depend /etc/ssl/certs /etc/ssl/certs +COPY --from=depend /usr/share/zoneinfo /usr/share/zoneinfo COPY ./script/entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh