Skip to content

Commit

Permalink
Merge pull request #229 from ministryofjustice/timezone
Browse files Browse the repository at this point in the history
🐛 Set timezone to Europe/London (successfully, this time)
  • Loading branch information
sldblog authored Apr 15, 2021
2 parents 602586f + 774f922 commit ec17cb7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ FROM node:14-alpine3.13 as base
LABEL maintainer="HMPPS Digital Studio <[email protected]>"

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 && \
Expand Down

0 comments on commit ec17cb7

Please sign in to comment.