Hello there,
For ASP.NET Core projects targeting .NET Core, there are two options for adding Docker support via the tooling. Open the project in Visual Studio, and choose one of the following options:
Select Docker Support from the Project menu.
Right-click the project in Solution Explorer and select Add > Docker Support.
You can use this before article for script guidance https://learn.microsoft.com/en-us/dotnet/core/docker/build-container?tabs=windows
Hope this resolves your Query !!
--If the reply is helpful, please Upvote and Accept it as an answer--