This sample demonstrates a tiny Hello World .NET Core app for App Service Web App. This sample can be used in a .NET Azure App Service app as well as in a Custom Container Azure App Service app.
Using the Azure CLI, log in to the Azure Container Registry (ACR):
az acr login -n <your_registry_name>
This repository contains 2 Dockerfiles, a Linux container and a Windows container.
To build the Windows image locally and publish to ACR, run the following command:
docker build -f Dockerfile.windows -t dotnetcore-docs-hello-world-windows .
docker tag dotnetcore-docs-hello-world-windows <your_registry_name>.azurecr.io/dotnetcore-docs-hello-world-windows:latest
docker push <your_registry_name>.azurecr.io/dotnetcore-docs-hello-world-windows:latest
To build the Windows image locally and publish to ACR, run the following command:
docker build -f Dockerfile.linux -t dotnetcore-docs-hello-world-linux .
docker tag dotnetcore-docs-hello-world-windows <your_registry_name>.azurecr.io/dotnetcore-docs-hello-world-linux:latest
docker push <your_registry_name>.azurecr.io/dotnetcore-docs-hello-world-linux:latest
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.