feat(xdebug): added support for xdebug in container

This commit is contained in:
Michael 2025-02-06 18:22:48 +01:00
parent 92631dc015
commit d48200af4e
1 changed files with 2 additions and 1 deletions

View File

@ -366,7 +366,8 @@ ENV sintonia_vite_port=${sintonia_vite_port}
USER root USER root
RUN pecl install xdebug && \ RUN pecl install xdebug && \
docker-php-ext-enable xdebug && \ docker-php-ext-enable xdebug && \
echo 'xdebug.mode = debug\nxdebug.discover_client_host = 1\nxdebug.start_with_request = yes' >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini echo 'xdebug.mode = develop,debug\nxdebug.client_host=host.docker.internal\nxdebug.start_with_request=yes' >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini && \
echo 'error_reporting=E_ALL' > /usr/local/etc/php/conf.d/error_reporting.ini
USER $sintonia_user USER $sintonia_user
WORKDIR /var/www/sintonia_webapp WORKDIR /var/www/sintonia_webapp