Now let us now add Docker features to the application to run it on a Windows Server Container:
- First, publish the application to file system. Right-click on the Project and click Publish.
- Name the Profile field as publish-iis and then click OK.
- Select the Publish method as File System and Target location as shown in the following image. We will be using the published binaries to build our Windows Container image:
- In the next window select Release in Configuration: and click Publish. Check that publish is successful.
- Right-click on the project and add a new folder called Docker.
- Let us add a new file ...