build(Dockerfile): 设置时区为亚洲/上海
- 在 Dockerfile 中添加环境变量 TZ=Asia/Shanghai - 这个改动将使容器运行时使用北京时间
This commit is contained in:
@@ -7,4 +7,6 @@ RUN npm i --registry=http://registry.npmmirror.com
|
|||||||
|
|
||||||
EXPOSE 12525
|
EXPOSE 12525
|
||||||
|
|
||||||
|
ENV TZ=Asia/Shanghai
|
||||||
|
|
||||||
CMD ["node", "index.js"]
|
CMD ["node", "index.js"]
|
||||||
|
|||||||
Reference in New Issue
Block a user