From 7f0bf111fe950d26eb796eb094d7e13bd40f446d Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Sat, 12 Mar 2022 16:48:42 -0500 Subject: [PATCH] Docker: Configurable time zone --- Dockerfile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Dockerfile b/Dockerfile index 49efb7a7..522eb0b1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,6 +7,13 @@ FROM node:lts-slim LABEL maintainer="Etherpad team, https://github.com/ether/etherpad-lite" +ARG TIMEZONE= +RUN \ + [ -z "${TIMEZONE}" ] || { \ + ln -sf /usr/share/zoneinfo/"${TIMEZONE#/usr/share/zoneinfo/}" /etc/localtime; \ + dpkg-reconfigure -f noninteractive tzdata; \ + } + # plugins to install while building the container. By default no plugins are # installed. # If given a value, it has to be a space-separated, quoted list of plugin names.