diff options
Diffstat (limited to 'docker/php/Dockerfile')
-rw-r--r-- | docker/php/Dockerfile | 34 |
1 files changed, 29 insertions, 5 deletions
diff --git a/docker/php/Dockerfile b/docker/php/Dockerfile index d0266ec7..171e12fc 100644 --- a/docker/php/Dockerfile +++ b/docker/php/Dockerfile | |||
@@ -1,15 +1,39 @@ | |||
1 | FROM php:fpm | 1 | 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 libicu-dev libpq-dev libxml2-dev libpng-dev libjpeg-dev \ | 8 | libmcrypt-dev \ |
8 | && /usr/local/bin/docker-php-ext-configure gd --with-jpeg-dir=/usr/include \ | 9 | libicu-dev \ |
9 | && docker-php-ext-install \ | 10 | libpq-dev \ |
10 | iconv mbstring intl pdo pdo_mysql pdo_pgsql gd | 11 | libxml2-dev \ |
12 | libpng-dev \ | ||
13 | libjpeg-dev \ | ||
14 | libsqlite3-dev \ | ||
15 | imagemagick \ | ||
16 | libmagickwand-dev \ | ||
17 | libtidy-dev \ | ||
18 | git | ||
19 | RUN docker-php-ext-install \ | ||
20 | iconv \ | ||
21 | mbstring \ | ||
22 | gd \ | ||
23 | intl \ | ||
24 | pdo \ | ||
25 | pdo_mysql \ | ||
26 | pdo_pgsql \ | ||
27 | pdo_sqlite \ | ||
28 | sockets \ | ||
29 | tidy \ | ||
30 | bcmath \ | ||
31 | zip | ||
32 | |||
33 | RUN printf "\n" | pecl install imagick && docker-php-ext-enable imagick | ||
11 | 34 | ||
12 | 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 | ||
13 | 37 | ||
14 | RUN usermod -u 1000 www-data | 38 | RUN usermod -u 1000 www-data |
15 | 39 | ||