Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Optionally remove build-only dependencies and bloat after install

Aperta
#618 2 commenti 3 reazioni 1 assegnatario Vedi su GitHub

@asgrim ci sta già lavorando.

Dal 19/5/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

enhancement maintainer investigating

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 .so files to reduce size even more.

Flag naming ideas

pie install xdebug/xdebug \
  --cleanup \
  --strip-debug-symbols \
Lingua principale
PHP
Stelle
2k
Fork
73
Merge medio
3h 37m
PR unite (30g)
11

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di php/pie

Tutte le issue di php/pie

Issue simili

Altre issue su PHP

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.