aboutsummaryrefslogtreecommitdiffhomepage
path: root/docker/php/Dockerfile
blob: b43d40b51e634ed4743ba4170b399149ff0e8276 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
FROM php:fpm

ARG timezone='Europe/Paris'

RUN apt-get update && apt-get install -y \
        libmcrypt-dev libicu-dev libpq-dev libxml2-dev \
    && docker-php-ext-install \
        iconv mcrypt mbstring intl pdo pdo_mysql pdo_pgsql

RUN echo "date.timezone="$timezone > /usr/local/etc/php/conf.d/date_timezone.ini

RUN usermod -u 1000 www-data

CMD ["php-fpm"]