-
Notifications
You must be signed in to change notification settings - Fork 0
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
Improve docker build speed and caching #118
Conversation
The author of this PR, stefpiatek, is not an activated member of this organization on Codecov. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Stef! Looks like the caching is actually working now 🎉
Co-authored-by: Milan Malfait <[email protected]>
Followed renv's guide on multi-stage docker builds to separate the renv set up and installation so it would be cached across builds. |
Didn't have a look into the build time of the application, but duckdb takes forever to build. Running make with 4 cores decreased build time from ~3300s to ~1000s. Also changed order to allow the dependencies to be cached.