From de3859bbf63d00cff40a05e5eb47e8457f71f2f7 Mon Sep 17 00:00:00 2001 From: Alexandre Nizoux Date: Fri, 25 Oct 2019 08:34:42 +0200 Subject: [PATCH] Add container timezone handling Allows to change the timezone with the TZ env variable, useful for cron tasks and other things. --- docker/images/n8n/Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docker/images/n8n/Dockerfile b/docker/images/n8n/Dockerfile index 3fc6f9505a..b6fff9155f 100644 --- a/docker/images/n8n/Dockerfile +++ b/docker/images/n8n/Dockerfile @@ -5,8 +5,9 @@ ARG N8N_VERSION RUN if [ -z "$N8N_VERSION" ] ; then echo "The N8N_VERSION argument is missing!" ; exit 1; fi # Update everything and install needed dependencies -RUN apk add --update \ - graphicsmagick +RUN apk add --update --no-cache \ + graphicsmagick tzdata +ENV TZ Europe/Berlin # # Set a custom user to not have n8n run as root USER root