From the course: Deploying ASP.NET Applications
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Create the base Docker image
From the course: Deploying ASP.NET Applications
Create the base Docker image
- [Instructor] What can do now is to start command prompt again, cmd, and run a docker command called docker build. So first we need to move D cd deploy to the right folder, and from here we need to run docker build minus t, so I will tag that and I will call it hplussports. The name of the image would be hplussports, and then I would specify which folder includes the docker file, and it is the current folder. I'm pressing enter, and now it will start building that. It will look if there is microsoft asp.net, and because I already have it, it doesn't have to download it, but it creates an instance of it. Now, once the instance is running, it runs powershell command, to remove all the inetpub dot dot dot root files, once that is done it creates different image, so it creates a new image actually out of that one, and when that one is done it creates a new image that has the working directory to inetpub root, and then last but not least it's copying everything from folder deployment into…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.