From f67626e4ac235d6aecff7efd4ec05ddbb7c43e81 Mon Sep 17 00:00:00 2001 From: Richard van Laak Date: Thu, 4 Dec 2025 20:10:48 +0100 Subject: [PATCH] Install xdebug through PIE And take a leap in the future --- Dockerfile | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2602fb82d..871849e10 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,9 +22,11 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ git \ && rm -rf /var/lib/apt/lists/* +COPY --from=ghcr.io/php/pie:bin /pie /usr/bin/pie +COPY --from=composer /usr/bin/composer /usr/bin/composer + RUN set -eux; \ install-php-extensions \ - @composer \ apcu \ intl \ opcache \ @@ -60,10 +62,7 @@ ENV FRANKENPHP_WORKER_CONFIG=watch RUN mv "$PHP_INI_DIR/php.ini-development" "$PHP_INI_DIR/php.ini" -RUN set -eux; \ - install-php-extensions \ - xdebug \ - ; +RUN pie install xdebug/xdebug COPY --link frankenphp/conf.d/20-app.dev.ini $PHP_INI_DIR/app.conf.d/