This sample demonstrates using ASP.NET Core MVC targeting full .net framework and deploying this to Docker
This sample requires Docker 18.09 or later of the Docker client.
You can quickly run a container with a pre-built sample ASP.NET Core Docker image.
- Start the container:
docker run --rm --name api -p 8080:80 -it -e christianacca/aspnetcoreapp-netfx-sample
- Browse to the api endpoint at: http://localhost:8080/api/values
To cleanup:
[CTRL]+C
You can build and run the sample in Docker using the following commands. The instructions assume that you are in the root of the repository.
- Clone the sample repository with git:
- Open a powershel prompt and change directory to the folder containing
docker-compose.yml
file - Build and start the container:
docker-compose up -d --build
- Browse to the api endpoint at: http://localhost:8080/api/values
To cleanup:
docker-compose down