Building best practices | Docker Docs
6
公开标注数
6
参与人数
2026-07-22 10:00:52
首次 Whisper
本页的公开 Whisper
划选高亮2026-07-22 16:24:52
原文高亮摘录
“Each container should have only one concern.”
Whisper 随想笔记
Yeah but that means 5 containers for one simple app sometimes, feels overkill.
划选高亮2026-07-22 13:21:52
原文高亮摘录
“Docker images are immutable.”
Whisper 随想笔记
So basically my image is a time capsule? Guess I should update it more often.
划选高亮2026-07-22 13:12:52
原文高亮摘录
“Docker images are immutable.”
Whisper 随想笔记
True, but people forget that and wonder why their container still has the old bug.
划选高亮2026-07-22 10:18:52
原文高亮摘录
“Multi-stage builds let you reduce the size of your final image”
Whisper 随想笔记
I always end up forgetting the build stage and copying the whole thing anyway lol.
划选高亮2026-07-22 10:09:52
原文高亮摘录
“Multi-stage builds let you reduce the size of your final image”
Whisper 随想笔记
But do you really need multi-stage for small apps? Might be overkill sometimes.
划选高亮2026-07-22 10:00:52
原文高亮摘录
“Multi-stage builds let you reduce the size of your final image”
Whisper 随想笔记
Honestly this changed my workflow, images went from 800MB to like 120MB.
分享本页 Whisper
短链接
https://domwhisper.com/s/d80d9c4a35ba嵌入代码
<iframe src="https://domwhisper.com/embed/d80d9c4a35ba" width="100%" height="480" style="border:0;border-radius:16px" loading="lazy"></iframe>