From 1266017bd91ddf4bf0b4d274c816b4125dcdc001 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Thu, 6 Jun 2024 12:48:15 +0200 Subject: [PATCH] Cleanup --- Dockerfile-dev | 6 +++--- docker/php/conf.d/xdebug.ini | 5 ++++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Dockerfile-dev b/Dockerfile-dev index 0386dc4..8392f50 100644 --- a/Dockerfile-dev +++ b/Dockerfile-dev @@ -2,11 +2,11 @@ FROM xtrime/telegram-api-server:latest ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ +RUN echo "opcache.jit=disable" >> "$PHP_INI_DIR/conf.d/xdebug.ini" + RUN chmod +x /usr/local/bin/install-php-extensions && \ install-php-extensions xdebug && \ - rm /usr/local/bin/install-php-extensions && \ - echo "" >> "$PHP_INI_DIR/conf.d/xdebug.ini" && \ - echo "zend_extension=xdebug.so" >> "$PHP_INI_DIR/conf.d/xdebug.ini" + rm /usr/local/bin/install-php-extensions ADD docker/php/conf.d/. "$PHP_INI_DIR/conf.d/" diff --git a/docker/php/conf.d/xdebug.ini b/docker/php/conf.d/xdebug.ini index 4d11575..2ed9594 100644 --- a/docker/php/conf.d/xdebug.ini +++ b/docker/php/conf.d/xdebug.ini @@ -1,5 +1,8 @@ +opcache.jit=disable +zend_extension=xdebug.so + xdebug.max_nesting_level=512 xdebug.mode=debug xdebug.start_with_request=yes xdebug.client_host=host.docker.internal -xdebug.client_port=9003 \ No newline at end of file +xdebug.client_port=9003