php-fpm/Dockerfile

9 lines
451 B
Docker
Raw Normal View History

2020-07-03 08:39:58 +00:00
FROM php:7-fpm-alpine
WORKDIR /var/www
2021-01-15 11:56:51 +00:00
RUN apk add --no-cache libcurl curl-dev libjpeg jpeg-dev libpng libpng-dev icu-dev libzip libzip-dev shadow freetype freetype-dev libpq postgresql-dev \
2020-07-03 08:39:58 +00:00
&& usermod -u 1000 www-data && groupmod -g 1000 www-data \
2021-01-15 11:56:51 +00:00
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
2020-08-15 05:06:31 +00:00
&& docker-php-ext-install ctype curl gd iconv intl mysqli pdo pdo_mysql zip exif pdo_pgsql pgsql
2020-07-03 08:39:58 +00:00
COPY ./php.ini /usr/local/etc/php/