Dockerfile 682 Bytes
FROM php:5.6-apache

# Enable apache mods.
RUN a2enmod php5
RUN a2enmod rewrite

RUN apt-get update && apt-get install -y \
        && docker-php-ext-install mysql \
	    && docker-php-ext-install mysqli \
	    && docker-php-ext-install pdo_mysql \
        && cd /usr/src/php \
        && make clean


# Manually set up the apache environment variables
ENV APACHE_RUN_USER www-data
ENV APACHE_RUN_GROUP www-data
ENV APACHE_LOG_DIR /var/log/apache2
ENV APACHE_LOCK_DIR /var/lock/apache2
ENV APACHE_PID_FILE /var/run/apache2.pid

# Update the default apache site with the config we created.
ADD apache-config.conf /etc/apache2/sites-available/000-default.conf
RUN a2ensite 000-default