Skip to content

Commit 52afb1a

Browse files
committed
Remove enable xdebug
1 parent a8c685c commit 52afb1a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,10 @@ RUN git clone --recursive --depth=1 https://github.com/NoiseByNorthwest/php-spx.
3131
rm -rf /tmp/php-spx
3232

3333
# Install and configure Xdebug
34-
RUN pecl install xdebug && docker-php-ext-enable xdebug && \
34+
RUN pecl install xdebug && \
35+
touch /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini && \
36+
echo "zend_extension=xdebug" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini && \
3537
echo "xdebug.mode=debug" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini && \
3638
echo "xdebug.client_host=172.20.0.1" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini && \
3739
echo "xdebug.idekey=dicoding-debug" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini && \
38-
rm -rf /tmp/pear
40+
rm -rf /tmp/pear

0 commit comments

Comments
 (0)