added xdebug

This commit is contained in:
2026-03-22 13:23:27 +01:00
parent 0519193b51
commit e06e5bde03
2 changed files with 9 additions and 2 deletions

View File

@@ -11,13 +11,14 @@ RUN apt-get update \
libjpeg-dev \
libpng-dev \
libwebp-dev \
&& pecl install memcached \
&& docker-php-ext-enable memcached \
&& pecl install memcached xdebug \
&& docker-php-ext-enable memcached xdebug \
&& docker-php-ext-configure gd --with-jpeg --with-webp \
&& docker-php-ext-install pdo_mysql mysqli gd zip \
&& rm -rf /var/lib/apt/lists/*
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer
COPY docker/php/php.ini /usr/local/etc/php/conf.d/zzz-minty-dev.ini
COPY docker/php/xdebug.ini /usr/local/etc/php/conf.d/zzz-xdebug.ini
WORKDIR /var/www

6
docker/php/xdebug.ini Normal file
View File

@@ -0,0 +1,6 @@
[xdebug]
xdebug.mode=debug
xdebug.start_with_request=trigger
xdebug.client_host=host.docker.internal
xdebug.client_port=9003
xdebug.idekey=VSCODE