php-fpm/Dockerfile

16 lines
836 B
Docker
Raw Permalink Normal View History

2021-01-16 02:57:01 +00:00
FROM php:5.6-fpm-alpine
2020-07-03 08:39:58 +00:00
WORKDIR /var/www
2021-01-16 02:57:01 +00:00
<<<<<<< Updated upstream
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-16 02:57:01 +00:00
&& docker-php-ext-configure gd --with-freetype-dir=/usr --with-jpeg-dir=/usr --with-png-dir=/usr --with-gnu-ld \
&& docker-php-ext-install ctype curl gd iconv intl mysql mysqli pdo pdo_mysql zip exif pdo_pgsql pgsql \
&& echo "no --disable-memcached-sasl" | pecl install memcached-2.2.0 \
&& pecl install memcache-2.2.4 \
&& docker-php-ext-enable memcached \
&& echo extension=memcached.so > /usr/local/etc/php/conf.d/memcached.ini \
&& echo extension=memcache.so > /usr/local/etc/php/conf.d/memcache.ini
2020-07-03 08:39:58 +00:00
COPY ./php.ini /usr/local/etc/php/