From 60d626030d1c3fc5ee42ddabd379318509ccc154 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Mon, 28 Nov 2022 18:02:33 +0100 Subject: 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 --- .devcontainer/Dockerfile | 3 +++ 1 file changed, 3 insertions(+) (limited to '.devcontainer') diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index e383254dc..f51c58cc8 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -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 \ -- cgit v1.2.3