https://github.com/alfg/docker-dotnetcore
A Dockerfile installing and running a basic aspnet webapi app
https://github.com/alfg/docker-dotnetcore
docker dockerfile dotnet dotnet-core
Last synced: 3 months ago
JSON representation
A Dockerfile installing and running a basic aspnet webapi app
- Host: GitHub
- URL: https://github.com/alfg/docker-dotnetcore
- Owner: alfg
- Created: 2019-09-07T04:19:25.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-09-07T04:20:41.000Z (almost 6 years ago)
- Last Synced: 2025-04-12T22:55:40.266Z (3 months ago)
- Topics: docker, dockerfile, dotnet, dotnet-core
- Language: C#
- Homepage: https://hub.docker.com/r/alfg/dotnetcore
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Docker dotnet core
> A Dockerfile installing and running a basic aspnet webapi app.Use this as a template for running aspnet apps in Docker.
[](https://hub.docker.com/r/alfg/dotnetcore/)
[](https://hub.docker.com/r/alfg/dotnetcore/)
[](https://hub.docker.com/r/alfg/dotnetcore/builds/)
[](https://travis-ci.org/alfg/docker-dotnetcore)## 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/valuesHTTP/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
* https://hub.docker.com/_/microsoft-dotnet-core
* https://github.com/dotnet/dotnet-docker
* https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/docker## License
MIT