From 03db2fddb56de97ce5b92e5381f19eb30ff30d4c 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 4cbce7e0..f2709006 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