Optionally remove build-only dependencies and bloat after install
维护者通常 1 天内回复
@asgrim 已经在做这个了。
开始于 2026年5月19日。
评估
这个 Issue 还没有评估数据。
描述
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 \
- 主要语言
- PHP
- 星标
- 2k
- 派生
- 75
- 平均合并
- 19 小时
- 30 天内合并 PR
- 16
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
php/pie 的其他 Issue
-
Inaccurate install instructions in the README, not possible to run `gh attestation` unauthenticated未关闭documentation
难度 2/5 1 小时以内 新手友好度 66/100
维护者通常 1 天内回复
-
Do not duplicate an ext in pie show output for dev versions可能已有人在做 @asgrim 于 12 天前认领。 未关闭enhancement maintainer investigating
维护者通常 1 天内回复
-
Add self-update feature for executable PIEs可能已有人在做 @asgrim 于 23 天前认领。 未关闭enhancement maintainer investigating
维护者通常 1 天内回复
-
Allow building from existing sources on disk可能已有人在做 @asgrim 于 23 天前认领。 未关闭enhancement maintainer investigating
php/pie#738 · 2 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
Display number of downloads/stars when results are shown可能重新可做 @asgrim 于 171 天前认领,目前没有进行中的 PR。 未关闭enhancement maintainer investigating
php/pie#592 · 1 条评论 · 1 个 reaction · 已指派 1 人 ·
维护者通常 1 天内回复
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 65/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 60/100
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 84/100
scanaislop/aislop#476 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
components-web-app/api-components-bundle#403 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 74/100
mollie/PrestaShop#1566 ·
维护者通常 1 天内回复