From 7875c4492eb3273b9cd9e843712535d0acdb1f70 Mon Sep 17 00:00:00 2001 From: Grzegorz Adam Kowalski Date: Thu, 14 Mar 2019 15:56:07 +0100 Subject: [PATCH] Timezone setup before apt-get tzdata --- Dockerfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 229481e..7462ddf 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,6 +3,10 @@ FROM ubuntu:18.04 # Based on # https://switch2osm.org/manually-building-a-tile-server-18-04-lts/ +# Set up environment +ENV TZ=UTC +RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone + # Install dependencies RUN apt-get update && apt-get install -y \ apache2 \ @@ -62,9 +66,7 @@ RUN apt-get update && apt-get install -y \ wget \ zlib1g-dev -# Set up environment and renderer user -ENV TZ=UTC -RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone +# Set up renderer user RUN adduser --disabled-password --gecos "" renderer USER renderer