A Dockerfile installing and running a basic aspnet webapi app.
Use this as a template for running aspnet apps in Docker.
docker pull alfg/dotnetcore
docker run -it -p 8080:80 --rm alfg/dotnetcore
docker build -t dotnetcore
docker run -it -p 8080:80 --rm dotnetcore
$ curl localhost:8080/api/values
HTTP/1.1 200 OK
Date: Sat, 07 Sep 2019 04:13:22 GMT
Content-Type: application/json; charset=utf-8
Server: Kestrel
Transfer-Encoding: chunked
["value1","value2"]
MIT
Content type
Image
Digest
Size
100.5 MB
Last updated
about 7 years ago
docker pull alfg/dotnetcore