Explorar el Código

Update Dockerfile

add timezone for php-worker
AliEbrahimpour hace 8 meses
padre
commit
5aed205358
Se han modificado 1 ficheros con 11 adiciones y 0 borrados
  1. 11 0
      php-worker/Dockerfile

+ 11 - 0
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}."
 
 #