Skip to content

Install xdebug through PIE#876

Open
rvanlaak wants to merge 1 commit into
dunglas:mainfrom
rvanlaak:patch-1
Open

Install xdebug through PIE#876
rvanlaak wants to merge 1 commit into
dunglas:mainfrom
rvanlaak:patch-1

Conversation

@rvanlaak

@rvanlaak rvanlaak commented Dec 4, 2025

Copy link
Copy Markdown

And take a leap in the future 🚀 It's a lot faster as through install-php-extensions.

XDebug 3.5 with PHP 8.5 support just was released, and mentions using PIE as a recommended method: https://github.com/xdebug/xdebug/releases/tag/3.5.0

Other extension I'm successfully installing for dev / production, by defining them in composer.json currently is ext-zend-opcache.

And take a leap in the future

@7-zete-7 7-zete-7 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like a good step forward for me!

Comment thread Dockerfile
Comment on lines +25 to +26
COPY --from=ghcr.io/php/pie:bin /pie /usr/bin/pie
COPY --from=composer /usr/bin/composer /usr/bin/composer

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
COPY --from=ghcr.io/php/pie:bin /pie /usr/bin/pie
COPY --from=composer /usr/bin/composer /usr/bin/composer
COPY --link --from=ghcr.io/php/pie:bin /pie /usr/bin/pie
COPY --link --from=composer /usr/bin/composer /usr/bin/composer

Comment thread Dockerfile
&& 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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not composer/composer:latest-bin? See https://getcomposer.org/doc/00-intro.md#docker-image

@7-zete-7

7-zete-7 commented Dec 4, 2025

Copy link
Copy Markdown
Contributor

Hi @rvanlaak!

Do you think it makes sense to add PIE to the FrankenPHP image? install-php-extensions is currently pre-installed there. I guess it would be convenient also to have PIE pre-installed.

@dunglas

dunglas commented Dec 12, 2025

Copy link
Copy Markdown
Owner

Wouldn't it better to improve install-php-extensions to use Pie? See mlocati/docker-php-extension-installer#1125

@rvanlaak

Copy link
Copy Markdown
Author

@dunglas good point, never thought of it like that. In short; yes!

Ref mlocati/docker-php-extension-installer#1125

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants