知识卡片
生产裁剪同时减少间接约束
未用包不只增加体积,还可能通过间接依赖约束影响所需包的解析与安装。应按真实使用删除、隔离开发工具并验证功能,不能仅凭镜像更小就证明没有安全问题。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
- · 依赖管理实践
原书出处 · 1 处
- · 查看原书依据
Remove Unnecessary Dependencies Unnecessary dependencies—in the form of unnecessarily large base images and unused application-level dependencies—can create several problems. First and foremost, they enlarge the attack surface area of your project and make it more vulnerable to malicious attackers. Second, they increase the time needed to build, publish, and pull your images. Not only does this lengthen the feedback cycle on your CI/CD pipeline, it
参考来源
- 位置:《Effective Machine Learning Teams (David Tan, Ada Leung, David Colls)》第04章《依赖管理实践》(来源项目:a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Effective Machine Learning Teams (David Tan, Ada Leung, David Colls)/_epub-src/OEBPS/ch04.html)
- 结论依据:摘录中关于生产裁剪同时减少间接约束的定义、比较或条件支撑卡片;原书表述不严谨的范围已在覆盖记录逐项限定,不把案例结果外推为普遍结论。
- 原始内容:Remove Unnecessary Dependencies Unnecessary dependencies—in the form of unnecessarily large base images and unused application-level dependencies—can create several problems. First and foremost, they enlarge the attack surface area of your project and make it more vulnerable to malicious attackers. Second, they increase the time needed to build, publish, and pull your images. Not only does this lengthen the feedback cycle on your CI/CD pipeline, it