]>
Commit | Line | Data |
---|---|---|
c1a1c46e | 1 | FROM php:7.2-fpm |
540ef5e0 | 2 | |
b80841f2 | 3 | # Default timezone. To change it, use the argument in the docker-compose.yml file |
612f5f1e | 4 | ARG timezone='Europe/Paris' |
5 | ||
540ef5e0 | 6 | RUN apt-get update && apt-get install -y \ |
2a61e13f JB |
7 | libmcrypt-dev \ |
8 | libicu-dev \ | |
9 | libpq-dev \ | |
10 | libxml2-dev \ | |
11 | libpng-dev \ | |
12 | libjpeg-dev \ | |
13 | libsqlite3-dev \ | |
14 | imagemagick \ | |
0deec408 JB |
15 | libmagickwand-dev \ |
16 | libtidy-dev | |
2a61e13f JB |
17 | RUN docker-php-ext-install \ |
18 | iconv \ | |
19 | mbstring \ | |
20 | intl \ | |
21 | pdo \ | |
22 | pdo_mysql \ | |
23 | pdo_pgsql \ | |
0deec408 JB |
24 | pdo_sqlite \ |
25 | tidy | |
2a61e13f JB |
26 | |
27 | RUN printf "\n" | pecl install imagick && docker-php-ext-enable imagick | |
540ef5e0 | 28 | |
612f5f1e | 29 | RUN echo "date.timezone="$timezone > /usr/local/etc/php/conf.d/date_timezone.ini |
12546034 | 30 | |
540ef5e0 FM |
31 | RUN usermod -u 1000 www-data |
32 | ||
33 | CMD ["php-fpm"] |