fix: embed tzdata to correct container timezone (#1126)

Signed-off-by: honeok <i@honeok.com>
This commit is contained in:
honeok
2025-10-03 09:33:12 +08:00
committed by GitHub
parent f16f0892bc
commit 32f52067c0
+4 -3
View File
@@ -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