Docker File and .Net Core Project — Github -> Docker Hub -> Azure Deploy Pipeline Part 2

Hasan Şahin
HardwareAndro
Published in
2 min readFeb 18, 2021

With Part 2, we will see how can create a Docker file compatible with Net Core and Test Project.

First, let’s look at the structure of our sample application.

.Net Core Web Api and Test Application

I created my Docker file in the upper directory of the project. For this reason, I use it as /github_docker_deploy where necessary.

Github Project Directory

Note: Docker file name should be ‘dockerfile’ otherwise you must specify .

Check docker file errors on https://www.fromlatest.io/#/

dockerfile

We have created the docker file that will use when we want to publish our project. Along with Part 4, we will see how to use the docker file.

With Part 3, we will add test results after every push and pull made using Github action.

Part 1 : https://medium.com/@hasansahinn/install-docker-on-azure-virtual-machine-github-docker-hub-azure-deploy-pipeline-part-1-4b1e73dd0d7

Part 2 : https://hasansahinn.medium.com/docker-file-and-net-core-project-github-docker-hub-azure-deploy-pipeline-part-2-4526bc02581d

Part 3 : https://hasansahinn.medium.com/github-actions-auto-test-github-docker-hub-azure-deploy-pipeline-part-3-105d9002acae

Part 4 : https://hasansahinn.medium.com/publishing-in-dockerhub-and-azure-github-docker-hub-azure-deploy-pipeline-part-4-d6efde5aca1e

--

--