fix(dockerfile): Avoid autoremove removing runtime deps#68
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
概述将 变更内容Docker 清理步骤优化
代码审查工作量评估🎯 2 (简单) | ⏱️ ~8 分钟 诗歌
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Tip 💬 Introducing Slack Agent: The best way for teams to turn conversations into code.Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.
Built for teams:
One agent for your entire SDLC. Right inside Slack. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Review rate limit: 0/1 reviews remaining, refill in 60 minutes.Comment |
修复 Dockerfile 中多处安装步骤在完成后执行 apt-get autoremove -y 的问题。该清理行为会在镜像构建过程中误删由其他包间接拉起的运行时依赖,导致后续环境缺少实际需要的库。此次修改将常规安装层中的 autoremove 调整为仅执行缓存清理,保留显式临时构建依赖的定向卸载逻辑,从而避免运行时依赖被错误移除