mirror of
https://github.com/php-fig/www.php-fig.org.git
synced 2026-03-23 22:42:13 +01:00
Add Xdebug to the PHP container build
This commit is contained in:
committed by
Alessandro
parent
de42488ac9
commit
ec6b1befdf
@@ -19,4 +19,12 @@ RUN addgroup -g $GID fig && adduser -D -G fig -u $UID fig \
|
||||
&& mkdir /fig-website \
|
||||
&& chown fig:fig /fig-website
|
||||
WORKDIR /fig-website
|
||||
|
||||
RUN apk add --no-cache --virtual .xdebug-build-deps $PHPIZE_DEPS \
|
||||
&& pecl install -o xdebug \
|
||||
&& docker-php-ext-enable xdebug \
|
||||
&& apk del .xdebug-build-deps \
|
||||
&& pecl clear-cache \
|
||||
&& docker-php-source delete
|
||||
|
||||
USER fig
|
||||
|
||||
6
docker/php/xdebug.ini
Normal file
6
docker/php/xdebug.ini
Normal file
@@ -0,0 +1,6 @@
|
||||
[xdebug]
|
||||
xdebug.client_port=9003
|
||||
xdebug.start_with_request=yes
|
||||
xdebug.log=/tmp/xdebug.log
|
||||
xdebug.client_host=host.docker.internal
|
||||
xdebug.mode=Off
|
||||
Reference in New Issue
Block a user