Skip to content

jonbprogramming/dotnetcore-docs-hello-world

 
 

Repository files navigation

.NET 7 Hello World

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.

Log in to Azure Container Registry

Using the Azure CLI, log in to the Azure Container Registry (ACR):

az acr login -n <your_registry_name>

Running in a Docker Container

This repository contains 2 Dockerfiles, a Linux container and a Windows container.

Publish the Windows image to your Registry

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

Publish the Linux image to your Registry

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

Contributing

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.

About

A simple .NET Core MVC web app for docs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 53.6%
  • C# 28.3%
  • CSS 14.9%
  • JavaScript 3.2%