diff --git a/dev/php/Dockerfile b/dev/php/Dockerfile index 9695a7c..b9e0071 100644 --- a/dev/php/Dockerfile +++ b/dev/php/Dockerfile @@ -16,6 +16,11 @@ RUN docker-php-ext-install pdo \ zip \ 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 | \ php -- --install-dir=/usr/local/bin --filename=composer diff --git a/dev/php/config/xdebug.ini b/dev/php/config/xdebug.ini new file mode 100644 index 0000000..db5db76 --- /dev/null +++ b/dev/php/config/xdebug.ini @@ -0,0 +1,6 @@ +[xdebug] +zend_extension=xdebug +xdebug.mode=develop,debug +xdebug.client_host=host.docker.internal +xdebug.start_with_request=yes +