Public Repository

Last pushed: 9 months ago
Short Description
Php 5.6 fpm + opcache + memcached + smtp
Full Description

Run command

docker run --name=php56om9560 --restart=always -d -v /var/www:/var/www --add-host smtp-server:172.17.42.1 --add-host mysql:172.17.42.1 -p 9560:9000 brahman/php56om

Dockerfile

FROM php:5.6-fpm

#install the PHP extensions we need
RUN apt-get update && apt-get install -y libpng12-dev libjpeg-dev libpq-dev php5-memcached memcached ssmtp \
&& rm -rf /var/lib/apt/lists/* \
&& docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
&& docker-php-ext-install gd mbstring pdo pdo_mysql pdo_pgsql zip opcache

#modify ssmtp settings
RUN sed -ri -e 's/^(mailhub=).*/\1smtp-server/' -e 's/^#(FromLineOverride)/\1/' /etc/ssmtp/ssmtp.conf

WORKDIR /var/www

VOLUME /var/www

VOLUME /tmp

CMD service memcached start&&php-fpm

Docker Pull Command
Owner
brahman

Comments (0)