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 Dockerfile
We saw how easy it is, to use an image, to run our own application, an existing image, based on a Microsoft asp.net, but what we really want to do at the end of the day, is to be able to, package our application, deploy it inside the new image, and then run that image instead, which is complete with an sp.net and our application image. So lets see how we can achieve that. First of all we need to create a new file, lets take notepad, and we create a so called docker file. Docker file, it is a file, special format, specified by docker, where you can use actually information, and specify exactly what you need to do, in order to run your own image. So I can specify which is the starting point, my starting point would be, the Microsoft, slash aspnet image, then from that image, I want to actually do something; I want to remove a run, I want to remove all the files that are already in existing, in the c I net www root folder; and in order to do that, we need to run a power shell command…
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.