]> git.immae.eu Git - github/wallabag/wallabag.git/blame - docker/php/Dockerfile
Add package and PHP extension to PHP docker
[github/wallabag/wallabag.git] / docker / php / Dockerfile
CommitLineData
c1a1c46e 1FROM php:7.2-fpm
540ef5e0 2
b80841f2 3# Default timezone. To change it, use the argument in the docker-compose.yml file
612f5f1e 4ARG timezone='Europe/Paris'
5
540ef5e0 6RUN 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 15 libmagickwand-dev \
2068b445 16 libtidy-dev \
17 git
2a61e13f
JB
18RUN docker-php-ext-install \
19 iconv \
20 mbstring \
2068b445 21 gd \
2a61e13f
JB
22 intl \
23 pdo \
24 pdo_mysql \
25 pdo_pgsql \
0deec408 26 pdo_sqlite \
2068b445 27 sockets \
28 tidy \
29 bcmath \
30 zip
2a61e13f
JB
31
32RUN printf "\n" | pecl install imagick && docker-php-ext-enable imagick
540ef5e0 33
612f5f1e 34RUN echo "date.timezone="$timezone > /usr/local/etc/php/conf.d/date_timezone.ini
12546034 35
540ef5e0
FM
36RUN usermod -u 1000 www-data
37
38CMD ["php-fpm"]