瀏覽代碼

Update Dockerfile

add timezone for php-worker
AliEbrahimpour 8 月之前
父節點
當前提交
5aed205358
共有 1 個文件被更改,包括 11 次插入0 次删除
  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}."
 RUN php -v | head -n 1 | grep -q "PHP ${PHP_VERSION}."
 
 
 #
 #