From 3c2d58310465122fab3c2dfaf8aeb37a52937d59 Mon Sep 17 00:00:00 2001 From: LAPLANCHE Maxime Date: Sat, 5 Nov 2022 11:40:14 +0000 Subject: [PATCH] modify php timezone --- template.Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/template.Dockerfile b/template.Dockerfile index e14d9a9..a26a6cf 100644 --- a/template.Dockerfile +++ b/template.Dockerfile @@ -32,6 +32,7 @@ RUN apt-get update -y \ && a2enmod rewrite RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone +RUN printf '[PHP]\ndate.timezone = "Europe/Paris"\n' > /usr/local/etc/php/conf.d/tzone.ini RUN curl -fLSso Robert2-${ROBERT2_VERSION}.zip https://github.com/Robert-2/Robert2/releases/download/${ROBERT2_VERSION}/Robert2-${ROBERT2_VERSION}.zip &&\ unzip Robert2-${ROBERT2_VERSION}.zip -d /tmp && \ @@ -48,4 +49,4 @@ RUN rm -rf /var/lib/apt/lists/* EXPOSE 80 -CMD ["apache2-foreground"] \ No newline at end of file +CMD ["apache2-foreground"]