Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 1 month 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 (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-09-07T04:20:41.000Z (over 5 years ago)
- Last Synced: 2024-11-06T03:46:08.416Z (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: 3
- 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.
[![Docker Stars](https://img.shields.io/docker/stars/alfg/dotnetcore.svg)](https://hub.docker.com/r/alfg/dotnetcore/)
[![Docker Pulls](https://img.shields.io/docker/pulls/alfg/dotnetcore.svg)](https://hub.docker.com/r/alfg/dotnetcore/)
[![Docker Automated build](https://img.shields.io/docker/automated/alfg/dotnetcore.svg)](https://hub.docker.com/r/alfg/dotnetcore/builds/)
[![Build Status](https://travis-ci.org/alfg/docker-dotnetcore.svg?branch=master)](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