diff --git a/Dockerfile b/Dockerfile index 429e8f50..9318ecae 100644 --- a/Dockerfile +++ b/Dockerfile @@ -31,9 +31,15 @@ RUN if [ "$PHP_VERSION" != "5.6" ] && [ "$PHP_VERSION" != "7.0" ]; then \ rm -f /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini && \ echo "pcov.enabled=1" >> /usr/local/etc/php/php.ini ;\ elif [ "$PHP_VERSION" == "5.6" ]; then \ - yes | pecl install xdebug-2.5.5; \ + yes | pecl install xdebug-2.5.5 \ + && 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; \ else \ - yes | pecl install xdebug; \ + yes | pecl install 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; \ fi # Install composer