diff options
-rw-r--r-- | docker/php/Dockerfile | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/docker/php/Dockerfile b/docker/php/Dockerfile index ffdf33c9..171e12fc 100644 --- a/docker/php/Dockerfile +++ b/docker/php/Dockerfile | |||
@@ -2,6 +2,7 @@ FROM php:7.2-fpm | |||
2 | 2 | ||
3 | # Default timezone. To change it, use the argument in the docker-compose.yml file | 3 | # Default timezone. To change it, use the argument in the docker-compose.yml file |
4 | ARG timezone='Europe/Paris' | 4 | ARG timezone='Europe/Paris' |
5 | ARG memorylimit='512M' | ||
5 | 6 | ||
6 | RUN apt-get update && apt-get install -y \ | 7 | RUN apt-get update && apt-get install -y \ |
7 | libmcrypt-dev \ | 8 | libmcrypt-dev \ |
@@ -13,20 +14,26 @@ RUN apt-get update && apt-get install -y \ | |||
13 | libsqlite3-dev \ | 14 | libsqlite3-dev \ |
14 | imagemagick \ | 15 | imagemagick \ |
15 | libmagickwand-dev \ | 16 | libmagickwand-dev \ |
16 | libtidy-dev | 17 | libtidy-dev \ |
18 | git | ||
17 | RUN docker-php-ext-install \ | 19 | RUN docker-php-ext-install \ |
18 | iconv \ | 20 | iconv \ |
19 | mbstring \ | 21 | mbstring \ |
22 | gd \ | ||
20 | intl \ | 23 | intl \ |
21 | pdo \ | 24 | pdo \ |
22 | pdo_mysql \ | 25 | pdo_mysql \ |
23 | pdo_pgsql \ | 26 | pdo_pgsql \ |
24 | pdo_sqlite \ | 27 | pdo_sqlite \ |
25 | tidy | 28 | sockets \ |
29 | tidy \ | ||
30 | bcmath \ | ||
31 | zip | ||
26 | 32 | ||
27 | RUN printf "\n" | pecl install imagick && docker-php-ext-enable imagick | 33 | RUN printf "\n" | pecl install imagick && docker-php-ext-enable imagick |
28 | 34 | ||
29 | RUN echo "date.timezone="$timezone > /usr/local/etc/php/conf.d/date_timezone.ini | 35 | RUN echo "date.timezone="$timezone > /usr/local/etc/php/conf.d/date_timezone.ini |
36 | RUN echo "memory_limit ="$memorylimit > /usr/local/etc/php/conf.d/memory_limit.ini | ||
30 | 37 | ||
31 | RUN usermod -u 1000 www-data | 38 | RUN usermod -u 1000 www-data |
32 | 39 | ||