浏览代码

Merge branch 'hotfix/timezone' of hostbbq/hostbbq-monitoring into master

tunefish 1 年之前
父节点
当前提交
8979525662
共有 1 个文件被更改,包括 9 次插入0 次删除
  1. 9 0
      server.dockerfile

+ 9 - 0
server.dockerfile

@@ -27,6 +27,15 @@ FROM node:18
 
 ARG HOME="/home/node"
 ARG APPDIR="${HOME}/monitoring"
+
+RUN apt update && \
+    apt install -y tzdata && \
+    apt install -y rsync
+
+# Change TimeZone
+ENV TZ=Europe/Berlin
+RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
+
 RUN mkdir ${APPDIR}
 WORKDIR ${APPDIR}