From 10ccb477907076d8b6604f349eeb9219924bc3fc Mon Sep 17 00:00:00 2001 From: ky0utarou <168627817+ky0utarou@users.noreply.github.com> Date: Wed, 1 May 2024 21:21:22 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20Dockerfile=20-=20=E4=BF=9D=E7=95=99tzdata?= =?UTF-8?q?=20(#91)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Dockerfile - keep tzdata for correct time * Dockerfile - install tzdata only for correct logging time refer to https://stackoverflow.com/a/68996528 --- Dockerfile | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index b314c0a..c66dd8e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,10 +9,7 @@ COPY ./*-bili-sync-rs ./targets/ RUN apk update && apk add --no-cache \ ca-certificates \ tzdata \ - ffmpeg \ - && cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \ - && echo "Asia/Shanghai" > /etc/timezone \ - && apk del tzdata + ffmpeg RUN if [ "$TARGETPLATFORM" = "linux/amd64" ]; then \ mv ./targets/Linux-x86_64-bili-sync-rs ./bili-sync-rs; \