#31 container timezone Europe/Berlin

병합
tunefish hostbbq/hotfix/timezone 에서 hostbbq/master 로 1 commits 를 머지했습니다 1 년 전
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}