Sign inSign up

alfg/dotnetcore

By alfg

Updated about 7 years ago

Image
0

197

alfg/dotnetcore repository overview

Docker dotnet core

A Dockerfile installing and running a basic aspnet webapi app.

Use this as a template for running aspnet apps in Docker.

Docker Stars Docker Pulls Docker Automated build Build Status

Usage

  • Pull Docker image and run:
docker pull alfg/dotnetcore
docker run -it -p 8080:80 --rm alfg/dotnetcore
  • or build and run container from source:
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"]

Resources

License

MIT

Tag summary

Content type

Image

Digest

Size

100.5 MB

Last updated

about 7 years ago

docker pull alfg/dotnetcore