Public Repository

Last pushed: 2 years ago
Short Description
PHP55 + Modules
Full Description

FROM php:5.5-apache

RUN apt-get update && apt-get install -y \
bzip2 \
libcurl4-openssl-dev \
libfreetype6-dev \
libicu-dev \
libjpeg-dev \
libmcrypt-dev \
libmemcached-dev \
libpng12-dev \
libpq-dev \
libxml2-dev \
libldap2-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/ /tmp/ /var/tmp/*

RUN docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
&& docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu/ \
&& docker-php-ext-install gd intl mbstring mcrypt mysql opcache pdo_mysql pdo_pgsql pgsql zip ldap

RUN { \
echo 'opcache.memory_consumption=128'; \
echo 'opcache.interned_strings_buffer=8'; \
echo 'opcache.max_accelerated_files=4000'; \
echo 'opcache.revalidate_freq=60'; \
echo 'opcache.fast_shutdown=1'; \
echo 'opcache.enable_cli=1'; \
} > /usr/local/etc/php/conf.d/opcache-recommended.ini

RUN pecl install APCu-4.0.10 redis memcached \
&& docker-php-ext-enable apcu redis memcached

RUN a2enmod rewrite

VOLUME /var/www/html

ADD index.php /var/www/html/

CMD ["apache2-foreground"]

Docker Pull Command
Owner
toughiq

Comments (0)