Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork5.9k
Add mount cache for docker building#34876
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:main
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
-> Reduce incremental Docker build times#27998 |
wxiaoguang commentedJun 27, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
One more thing, the rootful and rootless can share the some build and binaries. For example, build rootless first (or a common image first), then copy its binaries ( (Just a hint, not a must) |
Why duplicate so many commands in the yaml, should the commands be in a script? |
Uh oh!
There was an error while loading.Please reload this page.
This PR use cache mounts feature of docker to accelerate the docker image build process.
ref:https://docs.docker.com/build/cache/optimize/#use-cache-mounts
Run docker build locally it will take about
242.8s
and now it's16s
after cached.TODO: