Created
February 7, 2017 14:58
-
-
Save rzani/23f7b82cfe68c99aa40285ff889c598d to your computer and use it in GitHub Desktop.
PHP 5.6
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.22-fpm | |
# Installing Composer | |
RUN curl -sS https://getcomposer.org/installer | php && mv ./composer.phar /usr/local/bin/composer | |
RUN apt-get update && apt-get install -y \ | |
zip \ | |
unzip \ | |
curl \ | |
git-core \ | |
libxml2-dev \ | |
libcurl4-gnutls-dev \ | |
libfreetype6-dev \ | |
libjpeg62-turbo-dev \ | |
libmcrypt-dev \ | |
libpng12-dev \ | |
libmemcached-dev \ | |
&& pecl install memcached \ | |
&& docker-php-ext-install -j$(nproc) iconv mcrypt gd pdo pdo_mysql dom hash curl \ | |
&& docker-php-ext-enable memcached | |
RUN usermod -u 1000 -g 50 www-data |
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.22-fpm | |
# Installing Composer | |
RUN curl -sS https://getcomposer.org/installer | php && mv ./composer.phar /usr/local/bin/composer | |
RUN apt-get update && apt-get install -y \ | |
zip \ | |
unzip \ | |
curl \ | |
git-core \ | |
libxml2-dev \ | |
libcurl4-gnutls-dev \ | |
libfreetype6-dev \ | |
libjpeg62-turbo-dev \ | |
libmcrypt-dev \ | |
libpng12-dev \ | |
libmemcached-dev \ | |
&& pecl install memcached xdebug \ | |
&& echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini \ | |
&& echo "xdebug.remote_enable=on" >> /usr/local/etc/php/conf.d/xdebug.ini \ | |
&& echo "xdebug.remote_autostart=off" >> /usr/local/etc/php/conf.d/xdebug.ini \ | |
&& docker-php-ext-install -j$(nproc) iconv mcrypt gd pdo pdo_mysql dom hash curl \ | |
&& docker-php-ext-enable memcached | |
RUN usermod -u 1000 -g 50 www-data |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment