.NET and ASP.NET Core 10 · Publishing
Publish as a container image
Build a container image directly from the project, without a Dockerfile.
dotnet publish -t:PublishContainer
Official .NET and ASP.NET Core 10 documentation
More publishing commands
All publishing commands · .NET and ASP.NET Core 10 cheatsheet