Skip to content
This repository has been archived by the owner on Feb 3, 2023. It is now read-only.
/ aspnet-docker Public archive

Simple demo of ASP.NET Core and Docker using .NET Core 3.1 LTS

License

Notifications You must be signed in to change notification settings

hd9/aspnet-docker

Repository files navigation

aspnet-docker

Simple demo of ASP.NET Core and Docker using .NET Core 3.1 LTS.

Read the Article

To understand how to use this repo, make sure you read this article:
Creating ASP.NET Core websites with Docker

Requirements

In order to run this example, you'll need to have installed on your machine (Windows, Mac, Linux):

  • Docker Desktop (or Docker on Linux)
  • .NET Core SDK 3.1

Running

The steps to run are:

  1. clone this tool: git clone https://github.com/hd9/aspnet-docker
  2. cd into the folder: cd aspnet-docker
  3. Build a docker image: docker build . -t webapp
  4. Run a container with: docker run --rm -it -p 8080:80 webapp
  5. Open your browser and navigate to: localhost:8080

Thanks!

And don't forget to visit blog.hildenco.com.