.NET 8 samples size report #4781
richlander
started this conversation in
General
Replies: 1 comment
-
@richlander - to clarify these are the .NET 8.0 samples I assume since there are composite images? It would be interesting to see the size of the current samples based on .NET 7.0 (outside of the composite images which don't exist in 7.0). |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
We're working on a samples update for .NET 8 at #4742. This is a separate issue to track size. It's pretty interesting. I wrote a tool that builds all the Dockerfiles in a directory (using the Dockerfile name as the tag name) making it straightforward to identify which image is which.
dockerfile
is always Debian and.chiseled
is Ubuntu Chiseled (distroless). All other tags should be self-descriptive. If not, please ask.#4759 is a .NET 7 baseline size report.
Both x64 and Arm64 reports are provided. These chip types support different ISAs (naturally) and the amount of code needed is not the same (which directly contributes to size). Arm64 biases to bigger.
aspnetapp
(framework-dependent)x64:
Arm64:
dotnetapp
(framework-dependent)x64:
Amr64:
releasesapi
(AOT / self-contained)x64:
Arm64:
releasesapp
(Single file / self-contained)x64:
Arm64:
Delete the images
Off topic, but here's how I delete these images.
docker rmi -f $(docker images --filter="reference=dockerfile*" -q)
Beta Was this translation helpful? Give feedback.
All reactions