Timezone setup before apt-get tzdata
This commit is contained in:
parent
dbbe98aaed
commit
7875c4492e
@ -3,6 +3,10 @@ FROM ubuntu:18.04
|
|||||||
# Based on
|
# Based on
|
||||||
# https://switch2osm.org/manually-building-a-tile-server-18-04-lts/
|
# 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
|
# Install dependencies
|
||||||
RUN apt-get update && apt-get install -y \
|
RUN apt-get update && apt-get install -y \
|
||||||
apache2 \
|
apache2 \
|
||||||
@ -62,9 +66,7 @@ RUN apt-get update && apt-get install -y \
|
|||||||
wget \
|
wget \
|
||||||
zlib1g-dev
|
zlib1g-dev
|
||||||
|
|
||||||
# Set up environment and renderer user
|
# Set up renderer user
|
||||||
ENV TZ=UTC
|
|
||||||
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
|
||||||
RUN adduser --disabled-password --gecos "" renderer
|
RUN adduser --disabled-password --gecos "" renderer
|
||||||
USER renderer
|
USER renderer
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user