Просмотр исходного кода

Changed Timezone setting methode

hmetzner лет назад: 7
Родитель
Сommit
86c977467f
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      fhem/Dockerfile

+ 3 - 1
fhem/Dockerfile

@@ -85,7 +85,9 @@ RUN cpan Net::MQTT::Simple
 RUN cpan Net::MQTT::Constants
 
 # Install fhem
-RUN echo Europe/Berlin > /etc/timezone && dpkg-reconfigure tzdata
+# Set timezone to Europe/Berlin
+ENV TZ=Europe/Berlin
+RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
 
 RUN wget https://fhem.de/fhem-${FHEM_VERSION}.deb && dpkg -i fhem-${FHEM_VERSION}.deb
 RUN userdel fhem