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)