distroless icon indicating copy to clipboard operation
distroless copied to clipboard

Interested in dotnet images

Open nwesoccer opened this issue 2 years ago • 2 comments

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?

nwesoccer avatar Mar 25 '22 15:03 nwesoccer

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.

loosebazooka avatar Mar 25 '22 18:03 loosebazooka

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.

chgl avatar Aug 22 '22 01:08 chgl