dockerfiles: drop wheels from layers #13209
Merged
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.
Description
This is a follow up from the discussion on #13162 related to keeping changes to Dockerfiles at a minimum for now.
I've taken just the wheel dropping piece of that PR and opened this one with it.
Out of that PR, this is the one with most benefit (drop 1/6 of image size) with least changes.
Also, part of that PR was already merged in #13095
No build time improvement, but considerable size reduction which helps in CI with pushing and pulling the images, as not every setup has the docker registry sitting right next to the CI agent 😄
Test results
time docker build -t x9x -f Dockerfile.django-??? . --progress plain --no-cache --target releaseused for the builds (on an M4 macbook):--platform linux/amd64added for benchmarking qemu buildChecklist
This checklist is for your information.
dev.dev.bugfixbranch.