diff --git a/layers/fpm-dev/Dockerfile b/layers/fpm-dev/Dockerfile index f23ef55d..58bf2a64 100644 --- a/layers/fpm-dev/Dockerfile +++ b/layers/fpm-dev/Dockerfile @@ -10,8 +10,8 @@ ARG PHP_VERSION RUN mkdir -p /opt/bref/extensions # Install xdebug -RUN pecl install xdebug -RUN cp $(php -r "echo ini_get('extension_dir');")/xdebug.so /opt/bref/extensions +RUN if [ $PHP_VERSION != "84" ]; then pecl install xdebug; fi +RUN if [ $PHP_VERSION != "84" ]; then cp $(php -r "echo ini_get('extension_dir');")/xdebug.so /opt/bref/extensions; fi # Install Blackfire # https://blackfire.io/docs/up-and-running/installation?action=install&mode=full&version=latest&mode=full&location=server&os=manual&language=php#install-the-php-probe