Now let's containerize our application by adding some additional files and modifying the ASP.NET Core build and publishing process:
- As the first step, right-click on the MusicStore web project and navigate to Add | New Folder, name it Docker. This folder will hold all the artifacts which provide the necessary support for converting the application into a Windows Server Container.
- Now add a new file called Dockerfile to the project. Right-click on the Docker folder we just created, navigate to Add | New Item....
A Dockerfile is a special type of file with no extension, which only the Docker daemon can understand. Docker daemon looks for this file for instructions while building an image.
- Select any file type ...