From the course: Deploying ASP.NET Core Applications: From Fundamentals to Advanced Deployment Strategies

Unlock the full course today

Join today to access over 24,900 courses taught by industry experts.

Containerizing ASP.NET Core applications

Containerizing ASP.NET Core applications

- [Instructor] On this part, we're going to talk about how you can containerize an ASP.NET core app. Now, there are two ways on how you can do it using Visual Studio. You can either do it when you create the app or you can do it after you have created the app, which means that you can containerize existing .NET applications. Now let us go to Visual Studio, and then here I'm going to create a new project, so File, New, then Project, from the templates in here I'm going to choose the ASP.NET Core Web App (Model-View-Controller), then Next. Now, on this step, you need to define a name, just type in here, Docker, DockerDeployment.App, and then continue. Now, you're on this step, if you want to containerize the app when you create it, then in here you need to enable the Docker support, and then you need to choose the container operating system that'll be Linux, and then the container build type, and here you have two options, the Dockerfile or the .NET SDK. I'm going to choose the…

Contents