Browse Source

server: container timezone Europe/Berlin

Christian Kahlau 1 year ago
parent
commit
27757a349b
1 changed files with 9 additions and 0 deletions
  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}