Parcourir la source

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

tunefish il y a 1 an
Parent
commit
8979525662
1 fichiers modifiés avec 9 ajouts et 0 suppressions
  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}