Hello,
I have basic question and need clarification on that.
I have .net core web api and I am using .net 8.0. Without Docker I deploy it on the production server, create IIS App pool, IIS site and map that site name to the physical location of published folder. Now I can access this URL from anywhere.
How to do this with Docker. My approach is to create Dockerfile that will generate the image, in Dockerfile I will add .net core related packages, IIS hosting download related urls, and set IIS Inetpub location. There it will publish the code and create the Site all these commands in Dockerfile. So now my image will have .net core api and IIS. So this application will run on IIS inside the Docker. For this I will be using Windows Container.
Please guide me if this approach is correct and provide any link that has implemented this scenario.
Thanks,
Mahendra