diff --git a/Dockerfile b/Dockerfile index 3fd245580..44dca8e88 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,7 +7,10 @@ FROM node:14-alpine3.13 as base LABEL maintainer="HMPPS Digital Studio " ENV TZ=Europe/London -RUN ln -snf "/usr/share/zoneinfo/$TZ" /etc/localtime && echo "$TZ" > /etc/timezone +RUN apk add --no-cache tzdata && \ + test -e "/usr/share/zoneinfo/$TZ" && \ + ln -snf "/usr/share/zoneinfo/$TZ" /etc/localtime && \ + echo "$TZ" > /etc/timezone RUN addgroup --gid 2000 --system appgroup && \ adduser --uid 2000 --system appuser && \