This commit is contained in:
Daniil Gentili 2024-06-06 12:48:15 +02:00
parent 77df7acbb1
commit 1266017bd9
2 changed files with 7 additions and 4 deletions

View File

@ -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/"

View File

@ -1,3 +1,6 @@
opcache.jit=disable
zend_extension=xdebug.so
xdebug.max_nesting_level=512
xdebug.mode=debug
xdebug.start_with_request=yes