From the course: Advanced Azure Microservices with .NET for Developers

Unlock the full course today

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

Creating the required Dockerfiles for the microservices

Creating the required Dockerfiles for the microservices - Azure Tutorial

From the course: Advanced Azure Microservices with .NET for Developers

Creating the required Dockerfiles for the microservices

- [Instructor] The current debugging process, which involves configuring the solution for starting all the microservices, in other words, this option that is right here is far from ideal. That's why in this chapter, I'll show you how to containerize all the microservices and run them as a group using Docker Compose. But first, we need to create a Dockerfile in each microservice project. So to expedite this process, I already created those Dockerfiles. So let's type Dockerfile. So you can see that we have six Dockerfiles now. Now creating the Dockerfiles is very easy if you just right-click and then add Docker Support and select the OS and the build type. In this case, I selected Linux and Dockerfile. Take into account that when we add a Dockerfile, a new debugging profile is created. So for instance, let's select Hospital as the startup project, and you can see here on the list that we have Container Dockerfile,…

Contents