https://github.com/aimenux/dockernetcoredemo
Dockerizing .NET Core Apps
https://github.com/aimenux/dockernetcoredemo
console-app docker net90 webapi-core worker-service
Last synced: about 1 year ago
JSON representation
Dockerizing .NET Core Apps
- Host: GitHub
- URL: https://github.com/aimenux/dockernetcoredemo
- Owner: aimenux
- Created: 2022-01-03T00:07:12.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2025-02-24T11:27:43.000Z (about 1 year ago)
- Last Synced: 2025-02-24T12:33:04.906Z (about 1 year ago)
- Topics: console-app, docker, net90, webapi-core, worker-service
- Language: C#
- Homepage:
- Size: 21.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://github.com/aimenux/DockerNetCoreDemo/actions/workflows/ci.yml)
# DockerNetCoreDemo
```
Dockerizing .NET Core Apps
```
In this repo, i m using docker in order to build several types of .net core applications :
> :one: App_01 : Console application
>
> :two: App_02 : Worker application
>
> :three: App_03 : WebApi application
:rocket: To run code, type the following commands in your favorite terminal :
>
> :zap: For App_01 :
> - `docker build -t app01-image -f .\App_01\Dockerfile .`
> - `docker run --rm --name app01 -it app01-image`
>
> :zap: For App_02 :
> - `docker build -t app02-image -f .\App_02\Dockerfile .`
> - `docker run --rm --name app02 -it app02-image`
>
> :zap: For App_03 :
> - `docker build -t app03-image -f .\App_03\Dockerfile .`
> - `docker run --rm -p 5000:5000 -p 5001:5001 -e ASPNETCORE_ENVIRONMENT=Development -e ASPNETCORE_URLS="http://+:5000" --name app03 -it app03-image`
> - `go to https://localhost:5000/swagger/index.html`
>
>
:rocket: To clean docker resources, type the following commands :
> - `docker stop $(docker ps -aq --filter "name=app0*")`
> - `docker rm -f $(docker ps -aq --filter "name=app0*")`
> - `docker rmi -f $(docker images -aq --filter "reference=app0*")`
**`Tools`** : net 9.0, docker