Better caching multi-stage builds #2803
Unanswered
alexander-xyz
asked this question in
Q&A
Replies: 1 comment
-
The last command is fine. In fact, if you export cache for only your You may also want to look into |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
I want to know, how to better caching multi-stage builds.
For example, this is my dockerfile:
Do I have to build and cache the intermediate stages with a --opt target= for multistage builds, for better caching?
Or, I can build just need target, and all intermediate stages will be cached well?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions