-
-
Notifications
You must be signed in to change notification settings - Fork 75
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[REQUEST] Make docker build action faster #186
Comments
one of the biggest things slowing the build is the fact that the .dockerignore file has been moved to the docker folder, meaning that the entire git history and a bunch of other stuff not needed is copied into the container. running git mv on the file would probably cut off a minute or two from the build and reduce the overall file size |
Yep, merged that in from your PR. But the most important thing to significantly cut down on build times is to have a cache of some sort with actions. There's probably something out there. |
https://docs.docker.com/build/cache/backends/gha/ seems to be a configuration option for the system we already use. @AmgadHasan can you provide any insights on this? |
There is a cache size limit of 10 GB per repo. TabbyAPI image is ~ 5GB in size so the cache limit will be reached quickly. |
Problem
The docker action doesn't cache anything when building. This causes the build times to be over 10 minutes for every push.
Solution
Use an action to cache the intermediate build steps.
Alternatives
No response
Explanation
Doing this makes the image build build faster. This most likely requires a third-party build step.
Examples
No response
Additional context
No response
Acknowledgements
The text was updated successfully, but these errors were encountered: