From the course: .NET Microservices for Azure Developers

Unlock the full course today

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

Creating the Dockerfile in Visual Studio

Creating the Dockerfile in Visual Studio - Azure Tutorial

From the course: .NET Microservices for Azure Developers

Creating the Dockerfile in Visual Studio

- [Instructor] Here we are in Visual Studio, and the first thing that you can see here is that GitHub actions was added to the Solution Explorer. And this is because the following setting is enabled, show GitHub actions workflows in Solution Explorer. Okay, that said, we can go ahead and edit the workflow file since I want to use the same branch as the one that I'm using here in this video. Okay, perfect. Now we're ready to create the Docker file. Let's right-click on the project and then add Docker support. And in this dialogue you can select the Target OS and the container build type that you want. In this case, I want to use Linux and Docker file. So let's click on OK. And we can see that the Docker file was created successfully. And we can also see some other features that are important. The first one is that this container image will use a low privileged user inside the container. This is paramount for security reasons. And it's also exposing ports 8080 and 8081 for HTTP and…

Contents