Docker Community Forums

Share and learn in the Docker community.

Best base image for .NET Core 2.1 app


(Cclauson) #1

Hi,

New to docker. Have been deploying a .NET Framework app using the following image:
FROM microsoft/dotnet-framework:4.7.1-windowsservercore-1709microsoft/dotnet-framework:4.7.1-windowsservercore-1709

Recently moved it over to .NET Core, switched to this:
FROM microsoft/dotnet:aspnetcore-runtime

Discovered a huge improvement in memory usage on the server. My question is whether this is the best possible image, or if there’s a different one that I could use that would result in even lower memory usage?

Thanks so much in advance.