Open bdashore3 opened 2 months ago
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?
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