0
0
Fork 0
mirror of https://github.com/nextcloud/docker.git synced 2025-04-19 18:36:09 +02:00

Added an optional timezone configuration with the TZ ENV variable

This commit is contained in:
Blagovest Petrov 2016-10-11 02:57:32 +03:00
parent f5a6136e6a
commit 8fb6f75402
2 changed files with 5 additions and 1 deletions

View file

@ -19,7 +19,7 @@ RUN set -ex \
&& apk update \
&& apk add build-base python-dev py-pip jpeg-dev jpeg zlib zlib-dev \
postgresql-dev libmcrypt-dev libmcrypt libpng-dev libpng \
autoconf make g++ gcc git file gnupg re2c icu icu-dev \
autoconf make g++ gcc git file gnupg re2c icu icu-dev tzdata \
#&& echo "@testing http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories \
#&& echo '@community http://nl.alpinelinux.org/alpine/edge/community' >> /etc/apk/repositories \
#&& apk add php7-session@community \

View file

@ -6,4 +6,8 @@ if [ ! -e '/var/www/html/version.php' ]; then
chown -R www-data /var/www/html
fi
if [ -n "$TZ"]; then
cp /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
fi
exec "$@"