Skip to content

Commit

Permalink
modify php timezone
Browse files Browse the repository at this point in the history
  • Loading branch information
LaplancheMaxime committed Nov 5, 2022
1 parent addb312 commit 3c2d583
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion template.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 && \
Expand All @@ -48,4 +49,4 @@ RUN rm -rf /var/lib/apt/lists/*

EXPOSE 80

CMD ["apache2-foreground"]
CMD ["apache2-foreground"]

0 comments on commit 3c2d583

Please sign in to comment.