https://github.com/nullstone-io/docker-dotnet
Base docker image for .NET
https://github.com/nullstone-io/docker-dotnet
Last synced: 3 months ago
JSON representation
Base docker image for .NET
- Host: GitHub
- URL: https://github.com/nullstone-io/docker-dotnet
- Owner: nullstone-io
- License: mit
- Created: 2022-05-19T20:59:11.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2024-02-10T15:19:51.000Z (over 2 years ago)
- Last Synced: 2025-05-06T08:58:40.107Z (about 1 year ago)
- Language: Dockerfile
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# nullstone/dotnet
.NET Base Image that is optimized for production and configured to operate locally the same way.
This image is very opinionated; however, not restrictive.
## Quick Reference
- Maintained by
[Nullstone](https://nullstone.io)
- Where to get help
[Nullstone Slack](https://join.slack.com/t/nullstone-community/signup)
## Supported Tags and respective `Dockerfile` links
- [latest, 6, 6.0](Dockerfile)
- [local, 6-local, 6.0-local](local.Dockerfile)
- [builder, 6-builder, 6.0-builder](builder.Dockerfile)
## Production vs Local
This repository builds an image for local use and production use.
The local image configures:
- Configures environment via `ASPNETCORE_ENVIRONMENT=Development` env var.
- Configures listening port via `ASPNETCORE_URLS=http://+:5001` env var.
- On boot, the image runs `dotnet restore` (means you only need to restart the docker container when updating dependencies)
The production images configures:
- Configures a non-root user to run app
- Configures listening port via `ASPNETCORE_URLS=http://+:9000` env var.