kubeless
kubeless copied to clipboard
Feature Request - Revisit .NET Core Image Sizes....
Hi,
Pinging @allantargino.
Based on some help from https://github.com/kubeless/kubeless/issues/1059 I have determined that the existing .NET Core 2.1 image is 104 MB before dependencies - which is rather large.
I am by no means an expert in the area of building the supporting docker images needed for Kubeless but..... As things have moved on since then could I request that:
- .NET Core 2.x at least uses Alpine Linux - https://github.com/dotnet/dotnet-docker-nightly/issues/500?WT.mc_id=-blog-scottha (See details section) and https://www.hanselman.com/blog/ACompleteContainerizedNETCoreApplicationMicroserviceThatIsAsSmallAsPossible.aspx

- .NET Core 3.x also makes use of Tree Trimming https://www.hanselman.com/blog/MakingATinyNETCore30EntirelySelfcontainedSingleExecutable.aspx if applicable when creating the supporting code as part of the image
Hi @natiki,
We can definitely use alpine images. I am going to change the current one for mcr.microsoft.com/dotnet/core/aspnet:2.1.12-alpine3.9.
But we need to use aspnet core images, not just the simple dotnet core ones (which are really smaller)