Created
October 14, 2016 13:19
-
-
Save lorenzoaiello/77abe53c3f69f018af18b7ad8f6f0b51 to your computer and use it in GitHub Desktop.
LAMP Stack (PHP 5.6) with Xdebug for PHPStorm
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM php:5.6-apache | |
RUN a2enmod rewrite vhost_alias | |
# install the PHP extensions we need | |
RUN apt-get update | |
RUN apt-get install -y libpng12-dev libjpeg-dev libpq-dev imagemagick libxml2-dev libldap2-dev unzip libicu-dev libmcrypt-dev libfreetype6-dev | |
RUN rm -rf /var/lib/apt/lists/* | |
RUN docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr --with-freetype-dir=/usr --enable-gd-native-ttf | |
RUN docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu | |
RUN docker-php-ext-install gd mbstring pdo pdo_mysql zip exif soap ldap mysqli intl mcrypt opcache | |
RUN rm -rvf /usr/local/etc/php/conf.d/docker-php-ext-pdo.ini | |
RUN rm -rvf /usr/local/etc/php/conf.d/docker-php-ext-curl.ini | |
RUN rm -rf /tmp/* | |
RUN pecl install xdebug | |
RUN docker-php-ext-enable xdebug | |
COPY php.ini /usr/local/etc/php/conf.d/custom_php.ini | |
ADD www /var/www/html | |
RUN usermod -u 1000 www-data |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment