Public Repository

Last pushed: 7 months ago
Short Description
php:5.6-apache + php extensions: phpredis, gd, pdo_mysql + apache mod_rewrite
Full Description

Base

  • apache2
  • php 5.6

Components added to base image

  • phpredis 2.2.7
  • pdo_mysql
  • gd
  • apache mod_rewrite enabled

Dockerfile

FROM php:5.6-apache
MAINTAINER apotek

# Add pdo_mysql, gd, imagemagic support
RUN apt-get update && apt-get install -y \
        libfreetype6-dev \
        libjpeg62-turbo-dev \
        libmcrypt-dev \
        libpng12-dev \
    && docker-php-ext-install pdo_mysql \
    && docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
    && docker-php-ext-install gd

# Add PHPRedis support
RUN apt-get update && apt-get install -y wget unzip
WORKDIR /tmp
RUN wget https://github.com/phpredis/phpredis/archive/2.2.7.zip
RUN unzip 2.2.7.zip
WORKDIR phpredis-2.2.7
RUN phpize
RUN ./configure
RUN make && make install
RUN cp modules/redis.so /usr/local/lib/php/extensions/no-debug-non-zts-20131226
RUN echo "extension=redis.so" > /usr/local/etc/php/conf.d/redis.ini

# Enable mod rewrite
WORKDIR /etc/apache2/mods-enabled
RUN ln -s ../mods-available/rewrite.load rewrite.load

WORKDIR /etc/apache2
Docker Pull Command
Owner
apotek