Created
September 29, 2019 13:46
-
-
Save nansenat16/bbe0273831f48db16cb4259717f8b9e4 to your computer and use it in GitHub Desktop.
php7.2.23-phpunit8-xdebug2.7.2-pgsql11.5
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:7.2.23 | |
ENV XDEBUG_CONFIG="remote_host=127.0.0.1" | |
RUN curl -L -o /usr/local/bin/phpunit https://phar.phpunit.de/phpunit-8.phar \ | |
&& chmod 755 /usr/local/bin/phpunit \ | |
&& ln -s /usr/local/bin/phpunit /bin/phpunit \ | |
&& cp /usr/local/etc/php/php.ini-development /usr/local/etc/php/php.ini \ | |
&& pecl config-set php_ini /usr/local/etc/php/php.ini \ | |
&& pear config-set php_ini /usr/local/etc/php/php.ini \ | |
&& pecl install xdebug-2.7.2 \ | |
&& docker-php-ext-enable xdebug \ | |
&& 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 \ | |
&& apt-get update \ | |
&& apt-get install -y libpq-dev \ | |
&& docker-php-ext-install pdo pdo_pgsql | |
CMD ["php", "-a"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment