Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Optionally remove build-only dependencies and bloat after install

未关闭
#618 2 条评论 4 个 reaction 已指派 1 人 在 GitHub 查看

维护者通常 1 天内回复

@asgrim 已经在做这个了。

开始于 2026年5月19日。

评估

这个 Issue 还没有评估数据。

描述

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 \
主要语言
PHP
星标
2k
派生
75
平均合并
19 小时
30 天内合并 PR
16

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

php/pie 的其他 Issue

查看 php/pie 的全部 Issue

相似的 Issue

更多 PHP Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。