Public Repository

Last pushed: 2 years ago
Short Description
php-7.0.4-apache
Full Description
FROM php:7.0.4-apache

MAINTAINER Yoshihisa AMAKATA <amakata@flatz.jp>

RUN apt-get update && apt-get install -y \
    libfreetype6-dev \
    libjpeg62-turbo-dev \
        libmcrypt-dev \
        libpng12-dev \
        libxml2-dev \
        libxslt-dev \
        libicu-dev \
        libmemcached-dev \
    ssmtp \
    git \
    vim \
    && apt-get clean \
    && docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
    && docker-php-ext-install -j$(nproc) iconv mcrypt mbstring soap xsl zip intl dom gettext hash iconv json opcache pdo_mysql gd \
        && mkdir memcached \
        && curl -s -f -L https://github.com/php-memcached-dev/php-memcached/tarball/php7  | tar xvz -C ./memcached --strip-components 1 \
        && cd memcached \
        && phpize \
        && ./configure --disable-memcached-sasl \
        && make \
        && make install \
        && cd .. \
        && rm -rf memcached \
        && docker-php-ext-enable memcached
ADD opcache.ini /usr/local/etc/php/conf.d/999-opcache.ini
ADD ssmtp.ini /usr/local/etc/php/conf.d/999-ssmtp.ini
ADD ssmtp.conf /etc/ssmtp/ssmtp.conf

# this is for dinghy
RUN usermod -u 501 www-data; \
    a2enmod rewrite; \
    curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer --version=1.0.0-alpha12
Docker Pull Command
Owner
amakata