Comment on page
Build and upload docker image
Download the sample code, build and upload the docker image
This source for this tutorial is the following Microsoft's web site: https://learn.microsoft.com/en-us/azure/app-service/quickstart-custom-container?tabs=dotnet&pivots=container-linux-azure-portal
The following are the high-level steps:
- Download and clone the sample repository on your workstation
git clone https://github.com/Azure-Samples/dotnetcore-docs-hello-world.git
- Login to the Azure Container registry
az acr login -n <your_registry_name>
- Build the docker image
docker build -f Dockerfile.linux -t <your_registry_name>.azurecr.io/dotnetcore-docs-hello-world-linux .
- Upload the image to the container registry
docker push <your_registry_name>.azurecr.io/dotnetcore-docs-hello-world-linux:latest
Last modified 1yr ago