php-fpm/Dockerfile
Jay 91a930d6ce
All checks were successful
continuous-integration/drone/push Build is passing
[feat] add 5.6 config
2021-01-16 10:57:01 +08:00

16 lines
836 B
Docker

FROM php:5.6-fpm-alpine
WORKDIR /var/www
<<<<<<< Updated upstream
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 \
&& usermod -u 1000 www-data && groupmod -g 1000 www-data \
&& 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
COPY ./php.ini /usr/local/etc/php/