diff --git a/php-worker/Dockerfile b/php-worker/Dockerfile index 9afe9c01..096f0c5a 100644 --- a/php-worker/Dockerfile +++ b/php-worker/Dockerfile @@ -650,6 +650,17 @@ ENTRYPOINT ["/usr/bin/supervisord", "-n", "-c", "/etc/supervisord.conf"] #-------------------------------------------------------------------------- # +########################################################################### +# Set Timezone +########################################################################### + +ARG TZ=UTC +ENV TZ ${TZ} + +RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone + +########################################################################### + RUN php -v | head -n 1 | grep -q "PHP ${PHP_VERSION}." #