From the course: .NET Microservices for Azure Developers

Unlock the full course today

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

Creating the Dockerfile and modifying the workflow

Creating the Dockerfile and modifying the workflow - Azure Tutorial

From the course: .NET Microservices for Azure Developers

Creating the Dockerfile and modifying the workflow

- [Instructor] Okay, let's add the Dockerfile to the clinic microservice and then modify the GitHub actions workflow to build and push its container image. However, before we continue, you can see that I've renamed the clinic project to Wpm.Clinic.Api for consistency reasons and also renamed the corresponding folder. Okay, that said, let's right-click here and then Add Docker Support, Linux and Dockerfile. And that's it. Now we're ready to modify the workflow file. So let's change the branch, in this case, is 5_07E. And now we need to copy this. Let's copy the entire action. And down below, I'm going to paste it right here. So let's rename this Build and push management container image. And this other one is going to be Clinic container image. I have to replace management with clinic, and let's do that. And then the name for this container image should be clinic and those other things are fine. And then docker push clinic and then the rest is fine. Okay, now let's do the same for this…

Contents