aboutsummaryrefslogtreecommitdiff
path: root/Docker/Dockerfile-Alpine
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2022-11-28 18:02:33 +0100
committerGravatar GitHub <noreply@github.com> 2022-11-28 18:02:33 +0100
commit60d626030d1c3fc5ee42ddabd379318509ccc154 (patch)
tree0b372034d61c6e5282f2a9f0b592b39ee0f0f4eb /Docker/Dockerfile-Alpine
parentb71806268c299a9b1fcbe2ccb6a98f0ebdef6f63 (diff)
Docker Alpine time zone (#4903)
Allow setting the timezone with a `TZ` environment variable in our Alpine-based Docker images just like for our Debian-based Doker images. See https://github.com/FreshRSS/FreshRSS/discussions/4898#discussioncomment-4245991
Diffstat (limited to 'Docker/Dockerfile-Alpine')
-rw-r--r--Docker/Dockerfile-Alpine3
1 files changed, 3 insertions, 0 deletions
diff --git a/Docker/Dockerfile-Alpine b/Docker/Dockerfile-Alpine
index 75afa5486..9bc74800e 100644
--- a/Docker/Dockerfile-Alpine
+++ b/Docker/Dockerfile-Alpine
@@ -2,6 +2,9 @@ FROM alpine:3.17
ENV TZ UTC
SHELL ["/bin/ash", "-eo", "pipefail", "-c"]
+RUN apk add --no-cache tzdata && \
+ ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
+
RUN apk add --no-cache \
apache2 php-apache2 \
php php-curl php-gmp php-intl php-mbstring php-xml php-zip \