]> git.immae.eu Git - github/wallabag/wallabag.git/blob - docker/php/Dockerfile
Merge pull request #4049 from wallabag/fix/tidy-docker
[github/wallabag/wallabag.git] / docker / php / Dockerfile
1 FROM php:7.2-fpm
2
3 # Default timezone. To change it, use the argument in the docker-compose.yml file
4 ARG timezone='Europe/Paris'
5
6 RUN apt-get update && apt-get install -y \
7 libmcrypt-dev \
8 libicu-dev \
9 libpq-dev \
10 libxml2-dev \
11 libpng-dev \
12 libjpeg-dev \
13 libsqlite3-dev \
14 imagemagick \
15 libmagickwand-dev \
16 libtidy-dev
17 RUN docker-php-ext-install \
18 iconv \
19 mbstring \
20 intl \
21 pdo \
22 pdo_mysql \
23 pdo_pgsql \
24 pdo_sqlite \
25 tidy
26
27 RUN printf "\n" | pecl install imagick && docker-php-ext-enable imagick
28
29 RUN echo "date.timezone="$timezone > /usr/local/etc/php/conf.d/date_timezone.ini
30
31 RUN usermod -u 1000 www-data
32
33 CMD ["php-fpm"]