Skip to content

Commit a02e01a

Browse files
committed
Fix tzdata problem
1 parent dbbd485 commit a02e01a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ubuntu/Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ RUN set -eux; \
9595

9696
COPY ./ubuntu/docker-php-source /usr/local/bin/
9797

98+
ENV TZ=Europe/Rome
99+
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
100+
98101
RUN set -eux; \
99102
\
100103
savedAptMark="$(apt-mark showmanual)"; \
@@ -203,7 +206,7 @@ RUN set -eux; \
203206
# smoke test
204207
php --version
205208

206-
COPY ./ubuntu/docker-php-ext-* docker-php-entrypoint /usr/local/bin/
209+
COPY ./ubuntu/docker-php-ext-* ./ubuntu/docker-php-entrypoint /usr/local/bin/
207210

208211
# sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598)
209212
RUN docker-php-ext-enable sodium
@@ -256,6 +259,7 @@ STOPSIGNAL SIGQUIT
256259
EXPOSE 9000
257260
CMD ["php-fpm"]
258261

262+
# Laravel stuff
259263

260264
FROM php-ubuntu-fpm
261265

0 commit comments

Comments
 (0)