Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Split installation of services, dependency installation, and code building steps so we can make the most use of docker build caches. When only making changes to code, this can now use the build cache to build an image in <10s. This means that if the base dependencies (redis/nginx etc) don't change between versions, the changed layers to download are less, allowing for quicker updates.
This also makes it easy to see runtime deps vs build only deps, so we can uninstall the packages we don't need once the pipenv is setup.
Dive report on ghcr.io/meeb/tubesync:latest with 10 layers
Dive report with these changes, with 12 layers, but quicker rebuild time, and also improved space efficiency