https://github.com/devlinduldulao/asp-k8s
Sample JSON response at /
https://github.com/devlinduldulao/asp-k8s
Last synced: 14 days ago
JSON representation
Sample JSON response at /
- Host: GitHub
- URL: https://github.com/devlinduldulao/asp-k8s
- Owner: devlinduldulao
- Created: 2020-07-06T21:26:43.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-07-06T21:27:28.000Z (almost 6 years ago)
- Last Synced: 2026-05-01T19:07:22.762Z (about 2 months ago)
- Language: C#
- Homepage: https://hub.docker.com/repository/docker/webmasterdevlin/asp-k8s
- Size: 124 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#### Dockerizing a ASP.NET Web API
Login to Docker Hub
```zsh
$ docker login
```
create an ASP.NET Web API container
```zsh
$ docker build -t {yourDockerUsername}/asp-api:1.0.0 .
```
Test the ASP.NET Web API container by running it. It should be visible at localhost:8080
```zsh
$ docker run -p 8080:80 {yourDockerUsername}/asp-api:1.0.0
```
Push the container to your Docker Hub account repository
```zsh
$ docker push {yourDockerUsername}/asp-api:1.0.0
```