|
|
@ -176,9 +176,8 @@ COPY ./xdebug.ini /etc/php/${PHP_VERSION}/cli/conf.d/xdebug.ini |
|
|
|
ARG INSTALL_XDEBUG=false |
|
|
|
|
|
|
|
RUN if [ ${INSTALL_XDEBUG} = true ]; then \ |
|
|
|
# Load the xdebug extension only with phpunit commands |
|
|
|
apt-get install -y php${PHP_VERSION}-xdebug && \ |
|
|
|
sed -i 's/^zend_extension=/;zend_extension=/g' /etc/php/${PHP_VERSION}/cli/conf.d/20-xdebug.ini && \ |
|
|
|
pecl install xdebug-2.8.1 && \ |
|
|
|
echo ';zend_extension=xdebug.so' > /etc/php/${PHP_VERSION}/cli/conf.d/20-xdebug.ini && \ |
|
|
|
echo "alias phpunit='php -dzend_extension=xdebug.so /var/www/vendor/bin/phpunit'" >> ~/.bashrc \ |
|
|
|
;fi |
|
|
|
|
|
|
|