Add xdebug to the php container.
This commit is contained in:
parent
ca4be5e3ec
commit
7fc7b95ccd
@ -16,6 +16,11 @@ RUN docker-php-ext-install pdo \
|
|||||||
zip \
|
zip \
|
||||||
dom
|
dom
|
||||||
|
|
||||||
|
## Set up the Development Environment
|
||||||
|
RUN pecl install xdebug \
|
||||||
|
&& docker-php-ext-enable xdebug
|
||||||
|
COPY ./dev/php/config/xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini
|
||||||
|
|
||||||
RUN curl -sS https://getcomposer.org/installer | \
|
RUN curl -sS https://getcomposer.org/installer | \
|
||||||
php -- --install-dir=/usr/local/bin --filename=composer
|
php -- --install-dir=/usr/local/bin --filename=composer
|
||||||
|
|
||||||
|
6
dev/php/config/xdebug.ini
Normal file
6
dev/php/config/xdebug.ini
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
[xdebug]
|
||||||
|
zend_extension=xdebug
|
||||||
|
xdebug.mode=develop,debug
|
||||||
|
xdebug.client_host=host.docker.internal
|
||||||
|
xdebug.start_with_request=yes
|
||||||
|
|
Loading…
Reference in New Issue
Block a user