From 26f01f299a5b1519bd6b75e4228a76c87acfd4db Mon Sep 17 00:00:00 2001 From: PhantomMaa <494078416@qq.com> Date: Wed, 26 Feb 2025 14:55:20 +0800 Subject: [PATCH] feat: make timezone customize Signed-off-by: PhantomMaa <494078416@qq.com> --- Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 0e3f6f6fb..6efd1dc41 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,6 +11,8 @@ RUN cd reporter && go build . # The current Chromium version in Alpine 3.20 is causing timeout issues with Puppeteer. Downgrading to Alpine 3.19 fixes the issue. See #11640, #12637, #12189 FROM node:20-alpine3.19 AS base +ENV TZ=Asia/Shanghai + RUN npm install -g pnpm@9.7.1 # For apprise @@ -24,7 +26,9 @@ RUN apk upgrade --no-cache --available \ font-noto-emoji \ && apk add --no-cache \ --repository=https://dl-cdn.alpinelinux.org/alpine/edge/community \ - font-wqy-zenhei + font-wqy-zenhei \ + && apk add --no-cache tzdata \ + && ln -sf /usr/share/zoneinfo/$TZ /etc/localtime && echo "$TZ" > /etc/timezone # For zeromq RUN apk add --update --no-cache curl cmake