diff options
-rw-r--r-- | debian/stretch/Dockerfile | 5 | ||||
-rw-r--r-- | ubuntu/bionic/Dockerfile | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/debian/stretch/Dockerfile b/debian/stretch/Dockerfile index f14271e..42ceca5 100644 --- a/debian/stretch/Dockerfile +++ b/debian/stretch/Dockerfile @@ -20,11 +20,12 @@ RUN set -x \ && apt-get update -q \ && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* +ENV TZ="Europe/Vienna" RUN set -x \ && echo "de_AT.UTF-8 UTF-8\nen_US.UTF-8 UTF-8" > /etc/locale.gen \ && locale-gen \ - && echo "Europe/Vienna" > /etc/timezone \ - && dpkg-reconfigure -f noninteractive tzdata + && ln -snf /usr/share/zoneinfo/${TZ} /etc/localtime \ + && echo ${TZ} > /etc/timezone COPY common/bin/tini /usr/local/bin/ diff --git a/ubuntu/bionic/Dockerfile b/ubuntu/bionic/Dockerfile index 1cf9ff6..d5f8591 100644 --- a/ubuntu/bionic/Dockerfile +++ b/ubuntu/bionic/Dockerfile @@ -20,11 +20,12 @@ RUN set -x \ && apt-get update -q \ && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* +ENV TZ="Europe/Vienna" RUN set -x \ && echo "de_AT.UTF-8 UTF-8\nen_US.UTF-8 UTF-8" > /etc/locale.gen \ && locale-gen \ - && echo "Europe/Vienna" > /etc/timezone \ - && dpkg-reconfigure -f noninteractive tzdata + && ln -snf /usr/share/zoneinfo/${TZ} /etc/localtime \ + && echo ${TZ} > /etc/timezone COPY common/bin/tini /usr/local/bin/ |