Update Dockerfile-71

php7.1-xdebug instead of php-xdebug instead.
apt-get update needed therefore
This commit is contained in:
Rudolf Gitler 2017-07-07 13:21:14 +02:00 committed by GitHub
parent bf60f7520b
commit f2f665dc08

View File

@ -132,8 +132,8 @@ RUN echo "" >> ~/.bashrc && \
ARG INSTALL_XDEBUG=false ARG INSTALL_XDEBUG=false
RUN if [ ${INSTALL_XDEBUG} = true ]; then \ RUN if [ ${INSTALL_XDEBUG} = true ]; then \
# Load the xdebug extension only with phpunit commands # Load the xdebug extension only with phpunit commands
apt-get install -y --force-yes php-xdebug && \ apt-get update && \
sed -i 's/^;//g' /etc/php/7.1/cli/conf.d/20-xdebug.ini && \ apt-get install -y --force-yes php7.1-xdebug && \ sed -i 's/^;//g' /etc/php/7.1/cli/conf.d/20-xdebug.ini && \
echo "alias phpunit='php -dzend_extension=xdebug.so /var/www/vendor/bin/phpunit'" >> ~/.bashrc \ echo "alias phpunit='php -dzend_extension=xdebug.so /var/www/vendor/bin/phpunit'" >> ~/.bashrc \
;fi ;fi
# ADD for REMOTE debugging # ADD for REMOTE debugging