From 77df7acbb10ef930b6d69aa31f7630e2f310dd30 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Thu, 6 Jun 2024 12:40:11 +0200 Subject: [PATCH] Fix --- Dockerfile-dev | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/Dockerfile-dev b/Dockerfile-dev index edad447..0386dc4 100644 --- a/Dockerfile-dev +++ b/Dockerfile-dev @@ -1,12 +1,16 @@ FROM xtrime/telegram-api-server:latest -ADD docker/php/conf.d/. "$PHP_INI_DIR/conf.d/" +ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ -RUN pecl install xdebug \ - && echo "" >> "$PHP_INI_DIR/conf.d/xdebug.ini" \ - && echo "zend_extension=xdebug.so" >> "$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" + +ADD docker/php/conf.d/. "$PHP_INI_DIR/conf.d/" EXPOSE 9503 EXPOSE 9003 -ENTRYPOINT ["./entrypoint.sh"] \ No newline at end of file +ENTRYPOINT ["./entrypoint.sh"]