kubeless icon indicating copy to clipboard operation
kubeless copied to clipboard

Feature Request - Revisit .NET Core Image Sizes....

Open natiki opened this issue 6 years ago • 1 comments

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

image

  • .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

natiki avatar Jul 10 '19 10:07 natiki

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)

allantargino avatar Jul 17 '19 23:07 allantargino