Skip to content

Commit

Permalink
Add timezone to dockerfile (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilyHazlehurst authored May 2, 2024
1 parent a056ec1 commit 16831d0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,10 @@ RUN { \
echo 'catch_workers_output = yes'; \
echo 'decorate_workers_output = no'; \
} > /usr/local/etc/php/conf.d/error-logging.ini

# Set timezone
ENV TZ=Europe/London
RUN apk add dpkg tzdata && \
ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

RUN printf '[Date]\ndate.timezone="%s"\n' $TZ > /usr/local/etc/php/conf.d/tzone.ini

0 comments on commit 16831d0

Please sign in to comment.