Add timezone configuration

This commit is contained in:
2018-11-24 09:57:14 +01:00
parent a22b77b3ef
commit b3bcb6fca8
3 changed files with 7 additions and 3 deletions

View File

@ -5,12 +5,18 @@ ARG HTTPS_PROXY=
ARG http_proxy=
ARG https_proxy=
ARG FDROIDSERVER_VERSION=1.0.10
ARG TIMEZONE=Europe/Paris
RUN apk add --no-cache \
python3 build-base freetype-dev libffi-dev \
libpng-dev py3-setuptools python3-dev libxml2-dev \
libxslt-dev openssl-dev jpeg-dev java-common \
bash supervisor openssh inotify-tools gettext openjdk8 fastjar caddy
bash supervisor openssh inotify-tools gettext \
openjdk8 fastjar caddy tzdata
RUN cp /usr/share/zoneinfo/${TIMEZONE} /etc/localtime \
&& echo "${TIMEZONE}" > /etc/timezone \
&& apk del tzdata
RUN ln -s /usr/bin/fastjar /usr/bin/jar
RUN ln -s /usr/include/libxml2 /usr/include/libxml