Skip to content

Commit ee8f128

Browse files
committed
Dockerfile updated
1 parent 7cc27fd commit ee8f128

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

Dockerfile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,15 @@ RUN if [ "$PHP_VERSION" != "5.6" ] && [ "$PHP_VERSION" != "7.0" ]; then \
3131
rm -f /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini && \
3232
echo "pcov.enabled=1" >> /usr/local/etc/php/php.ini ;\
3333
elif [ "$PHP_VERSION" == "5.6" ]; then \
34-
yes | pecl install xdebug-2.5.5; \
34+
yes | pecl install xdebug-2.5.5 \
35+
&& echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini \
36+
&& echo "xdebug.remote_enable=on" >> /usr/local/etc/php/conf.d/xdebug.ini \
37+
&& echo "xdebug.remote_autostart=off" >> /usr/local/etc/php/conf.d/xdebug.ini; \
3538
else \
36-
yes | pecl install xdebug; \
39+
yes | pecl install xdebug \
40+
&& echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini \
41+
&& echo "xdebug.remote_enable=on" >> /usr/local/etc/php/conf.d/xdebug.ini \
42+
&& echo "xdebug.remote_autostart=off" >> /usr/local/etc/php/conf.d/xdebug.ini; \
3743
fi
3844

3945
# Install composer

0 commit comments

Comments
 (0)