Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
davexunit
· 11y ago · 0 comments
But let's say a dependency is changed. Won't modifying that RUN directive invalidate the cache for everything after it, potentially rebuilding a ton of stuff anyway?
Comments
[–]
emailgregn
11y ago
Yup, that's the trade-off.
[–]
davexunit
OP
11y ago
It's unfortunate that Docker uses an imperative model. A functional model would have much better cache utilization.