Skip to content

Commit 3e448e4

Browse files
committed
Remove redundant Xdebug configurations from Dockerfile
This change simplifies Xdebug installation in the Dockerfile by: - Keeping the Xdebug extension installation via PECL - Removing inline configurations that are now managed through php.ini - Eliminating risks of contradictory configurations between different files This approach centralizes all configuration in the php.ini file, improving maintainability and reducing potential sources of errors.
1 parent 06525f4 commit 3e448e4

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

docker/php/Dockerfile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,7 @@ RUN if [ "$PHP_TARGET" = "dev" ]; then \
9696
&& apt-get remove -y wget \
9797
&& apt-get autoremove --purge -y && apt-get autoclean -y && apt-get clean -y \
9898
&& rm -rf /var/lib/apt/lists/* \
99-
&& rm -rf /tmp/* /var/tmp/* \
100-
&& echo 'xdebug.mode=develop,debug' > /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \
101-
&& echo 'xdebug.client_host=host.docker.internal' >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \
102-
&& echo 'xdebug.start_with_request=yes' >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini ; \
99+
&& rm -rf /tmp/* /var/tmp/* ; \
103100
else \
104101
echo "Building production image without development tools."; \
105102
fi

0 commit comments

Comments
 (0)