Skip to content

Commit 97915da

Browse files
committed
Feat: Php 8.4 xdebug install
1 parent 0b1ffa6 commit 97915da

File tree

4 files changed

+12
-16
lines changed

4 files changed

+12
-16
lines changed

Dockerfile-dev

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
FROM xtrime/telegram-api-server:latest
22

3-
RUN pecl install xdebug \
4-
&& echo "" >> "$PHP_INI_DIR/conf.d/xdebug.ini" \
5-
&& echo "zend_extension=xdebug.so" >> "$PHP_INI_DIR/conf.d/xdebug.ini"
3+
4+
ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
5+
6+
RUN chmod +x /usr/local/bin/install-php-extensions \
7+
&& install-php-extensions xdebug
8+
9+
ADD dev/xdebug.ini $PHP_INI_DIR/conf.d/xdebug.ini
610

711
EXPOSE 9504
12+
EXPOSE 9003
813

914
ENTRYPOINT php server.php --docker
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1+
opcache.jit=disable
2+
zend_extension=xdebug.so
3+
14
xdebug.max_nesting_level=512
25
xdebug.mode=debug
36
xdebug.start_with_request=yes
47
xdebug.client_host=host.docker.internal
5-
xdebug.client_port=9003
8+
xdebug.client_port=9003

docker/php/conf.d/common.ini

Lines changed: 0 additions & 1 deletion
This file was deleted.

docker/php/conf.d/opcache.ini

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)