From e1177eda25318531e5b888fa3d8394bd67a008c6 Mon Sep 17 00:00:00 2001 From: Brett <54408245+kowh-ai@users.noreply.github.com> Date: Tue, 11 May 2021 13:57:34 +0200 Subject: [PATCH] Update Dockerfile --- ckan/Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ckan/Dockerfile b/ckan/Dockerfile index be8bfd2..b71875a 100644 --- a/ckan/Dockerfile +++ b/ckan/Dockerfile @@ -5,7 +5,9 @@ LABEL maintainer="brett@kowh.ai" # Set timezone ARG TZ RUN echo $TZ > /etc/timezone -RUN cmp /usr/share/zoneinfo/${TZ} /etc/localtime || cp /usr/share/zoneinfo/${TZ} /etc/localtime +RUN if ! [ /usr/share/zoneinfo/${TZ} -ef /etc/localtime ]; then \ + cp /usr/share/zoneinfo/${TZ} /etc/localtime \ + fi # Install any extensions needed by your CKAN instance # (Make sure to add the plugins to CKAN__PLUGINS in the .env file)