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/ 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 && \ RUN chmod +x /usr/local/bin/install-php-extensions && \
install-php-extensions xdebug && \ install-php-extensions xdebug && \
rm /usr/local/bin/install-php-extensions && \ 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"
ADD docker/php/conf.d/. "$PHP_INI_DIR/conf.d/" ADD docker/php/conf.d/. "$PHP_INI_DIR/conf.d/"

View File

@ -1,5 +1,8 @@
opcache.jit=disable
zend_extension=xdebug.so
xdebug.max_nesting_level=512 xdebug.max_nesting_level=512
xdebug.mode=debug xdebug.mode=debug
xdebug.start_with_request=yes xdebug.start_with_request=yes
xdebug.client_host=host.docker.internal xdebug.client_host=host.docker.internal
xdebug.client_port=9003 xdebug.client_port=9003