Skip to content

Latest commit

 

History

History
33 lines (18 loc) · 856 Bytes

Demo-CSharp.md

File metadata and controls

33 lines (18 loc) · 856 Bytes

AZ-204 Demo: Dockerfile and a building docker image.

In the demo you will create new image from web app project and push it in ACR

Technical Requirements:

  • Install Docker Desktop
  • Visual Studio Core
  • Net 5.0

Demonstration:

  1. Docker desktop must be run.

  2. Open in VS Code folder CSharp and observer project.

  3. Run the web site locally by use command dotnet run

    localhost

  4. Open Dockerfile

  5. Open run.azcli to build image. Script should be executed in the project folder.

  6. Run command from script line by line to build and tag the image.

  7. Run the docker image locally to observe the result.

  8. Open localhost to make sure that container created and run successful.

local docker image

  1. Run the command from script to push the image in ACR you previously deploy.