Skip to content

Commit 44a03ff

Browse files
authored
Merge pull request #1 from AlexzPurewoko/fix-xdebug-configuration
Fix Xdebug Configuration
2 parents 3b76e20 + f2ebc13 commit 44a03ff

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

Dockerfile

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ RUN apt-get update -y && apt-get install -y --no-install-recommends \
1111
RUN pecl install igbinary-3.2.15 && \
1212
pecl install --configureoptions='enable-redis-igbinary="yes"' redis-6.2.0 && \
1313
pecl install protobuf-4.27.2 grpc-1.64.1 && \
14+
pecl install xdebug && \
1415
rm -rf /tmp/pear
1516

1617
# Install PHP extensions via source (php-ext-lz4)
@@ -29,9 +30,3 @@ RUN git clone --recursive --depth=1 https://github.com/NoiseByNorthwest/php-spx.
2930
cd /tmp/php-spx && \
3031
phpize && ./configure && make && make install && \
3132
rm -rf /tmp/php-spx
32-
33-
# Install and configure Xdebug
34-
RUN pecl install xdebug && docker-php-ext-enable xdebug && \
35-
echo "xdebug.mode=debug" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini && \
36-
echo "xdebug.client_host=host.docker.internal" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini && \
37-
rm -rf /tmp/pear

0 commit comments

Comments
 (0)