distroless
distroless copied to clipboard
Interested in dotnet images
Last April the dotnet images were removed from this repository due to high snapshot.debian.org traffic in this Issue. It was mentioned there that if there was enough interest and that the overloading of debian was figured out that we may be able to get these added back to the repository. I'm definitely interested, but wanted to know if any work has been done around the load?
I think, ideally we would not add too many new images with heavy costs (downloading .net runtime). I wonder if we can just restructure this bazel build to make it easier for people to extend in their own repositories.
Another interesting option might be the new Ubuntu-based dotnet images that were "chiseled" to remove shell and package managers and are quite comparable to distroless: https://devblogs.microsoft.com/dotnet/dotnet-6-is-now-in-ubuntu-2204/
From a cursory test with a tiny app, I found this new base image (mcr.microsoft.com/dotnet/nightly/aspnet:6.0.8-jammy-chiseled) to result in a ~10MiB (compressed, 20MiB uncompressed) smaller image compared to using gcr.io/distroless/cc-debian11:nonroot with a dotnet self-contained build.