Simple demo of ASP.NET Core and Docker using .NET Core 3.1 LTS.
To understand how to use this repo, make sure you read this article:
Creating ASP.NET Core websites with Docker
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
The steps to run are:
- clone this tool:
git clone https://github.com/hd9/aspnet-docker
- cd into the folder:
cd aspnet-docker
- Build a docker image:
docker build . -t webapp
- Run a container with:
docker run --rm -it -p 8080:80 webapp
- Open your browser and navigate to:
localhost:8080
And don't forget to visit blog.hildenco.com.