.NET and ASP.NET Core 10 · Publishing
Publish a self-contained app
Include the runtime, so the target machine needs no .NET install.
dotnet publish -c Release -r linux-x64 --self-contained -o out
Official .NET and ASP.NET Core 10 documentation
More publishing commands
All publishing commands · .NET and ASP.NET Core 10 cheatsheet