Explorar o código

Changed Timezone setting methode

hmetzner %!s(int64=7) %!d(string=hai) anos
pai
achega
86c977467f
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  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