diff options
Diffstat (limited to 'docker/php')
-rw-r--r-- | docker/php/Dockerfile | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/docker/php/Dockerfile b/docker/php/Dockerfile index 7c56ae57..29d27c3a 100644 --- a/docker/php/Dockerfile +++ b/docker/php/Dockerfile | |||
@@ -1,10 +1,15 @@ | |||
1 | FROM php:fpm | 1 | FROM php:fpm |
2 | 2 | ||
3 | # Default timezone. To change it, use the argument in the docker-compose.yml file | ||
4 | ARG timezone='Europe/Paris' | ||
5 | |||
3 | RUN apt-get update && apt-get install -y \ | 6 | RUN apt-get update && apt-get install -y \ |
4 | libmcrypt-dev libicu-dev libpq-dev libxml2-dev \ | 7 | libmcrypt-dev libicu-dev libpq-dev libxml2-dev \ |
5 | && docker-php-ext-install \ | 8 | && docker-php-ext-install \ |
6 | iconv mcrypt mbstring intl pdo pdo_mysql pdo_pgsql | 9 | iconv mcrypt mbstring intl pdo pdo_mysql pdo_pgsql |
7 | 10 | ||
11 | RUN echo "date.timezone="$timezone > /usr/local/etc/php/conf.d/date_timezone.ini | ||
12 | |||
8 | RUN usermod -u 1000 www-data | 13 | RUN usermod -u 1000 www-data |
9 | 14 | ||
10 | CMD ["php-fpm"] | 15 | CMD ["php-fpm"] |