From c2d91ffaea884f7314b2ef985647594ebeeff9bd Mon Sep 17 00:00:00 2001 From: mohammad jalmoudy Date: Sun, 14 Dec 2025 01:43:06 +0330 Subject: [PATCH] remove alpine versioning and add necessary apps and configs to enable php debugging --- docker/php/Dockerfile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/docker/php/Dockerfile b/docker/php/Dockerfile index a6b4f41..25b4032 100644 --- a/docker/php/Dockerfile +++ b/docker/php/Dockerfile @@ -1,8 +1,14 @@ # PHP-FPM runtime -FROM php:8.5-rc-fpm-alpine3.23 +FROM php:8.5-fpm-alpine WORKDIR /var/www/html -# Install any PHP extensions you need +# Install PHP Xdebug Extention +RUN apk add --no-cache $PHPIZE_DEPS linux-headers && pecl install xdebug + +# Enable PHP installed extensions +RUN docker-php-ext-enable xdebug + +# Install PHP bundled extensions # RUN docker-php-ext-install pdo_mysql # Expose port 9000 (default for php-fpm)