From 456e55bb2ea1a04c56570e26ecc83c60e8c969fd Mon Sep 17 00:00:00 2001 From: aixianling Date: Wed, 8 Jan 2025 16:33:47 +0800 Subject: [PATCH] =?UTF-8?q?build(Dockerfile):=20=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E6=97=B6=E5=8C=BA=E4=B8=BA=E4=BA=9A=E6=B4=B2/=E4=B8=8A?= =?UTF-8?q?=E6=B5=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 Dockerfile 中添加环境变量 TZ=Asia/Shanghai - 这个改动将使容器运行时使用北京时间 --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index 8ce9fcc..86a5b49 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,4 +7,6 @@ RUN npm i --registry=http://registry.npmmirror.com EXPOSE 12525 +ENV TZ=Asia/Shanghai + CMD ["node", "index.js"]