Public Repository

Last pushed: a month ago
Short Description
standart php:fpm-alpine image + mongodb(driver) + memcached + opcache
Full Description

#php7
RUN set -xe \

# Update repository
&& apk update \
&& apk upgrade \

# Memcached
&& apk add --no-cache git libmemcached-dev zlib-dev cyrus-sasl-dev \
&& docker-php-source extract \
&& git clone --branch php7 https://github.com/php-memcached-dev/php-memcached.git /usr/src/php/ext/memcached/ \
&& docker-php-ext-configure memcached \
&& docker-php-ext-install memcached \
&& docker-php-source delete \
&& apk del --no-cache zlib-dev cyrus-sasl-dev git \

# Clear
&& rm -rf /tmp/* /var/cache/apk/*

RUN apk add --no-cache \
$PHPIZE_DEPS \
openssl-dev

RUN pecl install mongodb
RUN docker-php-ext-enable mongodb

RUN docker-php-ext-install opcache

#php5
RUN echo "date.timezone = Europe/Moscow" > /usr/local/etc/php/conf.d/timezone.ini

RUN apk add --no-cache \
$PHPIZE_DEPS \
openssl-dev \
cyrus-sasl-dev \
libmemcached-dev

RUN pecl install memcached-2.2.0 \
&& pecl install mongodb

RUN docker-php-ext-enable mongodb memcached

RUN docker-php-ext-install opcache pdo pdo_mysql

Docker Pull Command
Owner
akaillidan