Optionally remove build-only dependencies and bloat after install
@asgrim ya está trabajando en esto.
Desde el 19/5/2026.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
I still like mlocati/docker-php-extension-installer but I think it would be beneficial if there was official pie functionality that would automatically remove all build dependencies after installing extensions and maybe also remove other bloat. Then, we could just use the official way via pie also in containers (not just locally for dev) and let it handle all extensions.
Things that should be cleaned up after install (could be more):
- Build-only OS packages. To simplify this on Alpine we could use virtual packages and on Debian use diffing over the package list / using
apt-mark+apt-get autoremove. - The downloaded and extracted extension source and build artifacts (composer caches, attestation artifacts, `vendor/,...)
- Package-manager metadata and caches (
/var/lib/apt/lists/*,/var/cache/apt/*,/var/cache/apk/*). - Optionally we could strip debug symbols from compiled
.sofiles to reduce size even more.
Flag naming ideas
pie install xdebug/xdebug \
--cleanup \
--strip-debug-symbols \
- Lenguaje dominante
- PHP
- Estrellas
- 2k
- Forks
- 73
- Merge medio
- 3 h 37 min
- PR fusionados (30 d)
- 11
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de php/pie
-
Improve --with-libdir handling Abiertoenhancement maintainer investigating
-
enhancement maintainer investigating
-
enhancement maintainer investigating
-
enhancement maintainer investigating
-
Bundle PIE with PHP Abiertoenhancement maintainer investigating
Issues similares
-
Bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
Automattic/safe-publish#594 ·
-
needs-triage Platform(Default)
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
-
HttpClient
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
symfony/symfony-docs#23092 ·
-
sync-en
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
-
sync-en
Dificultad 1/5 Menos de una hora Aptitud para principiantes 95/100