.NET Framework runtime container with a few tweaks:
- Uses dumb-init to ensure proper signalling
- Automatically attempts to find and start proper dll
- Run as
dotnet
(uid/gid: 1737) user/group
Note: It's assumed that the application is framework-dependent, and so is not built as a self-contained deployment.
# run the web app in the current directory (browse using http://localhost:8123)
docker run -p 8123:80 --rm -v ${PWD}:/app boeegh/dotnet-runx:7.0
# run the .net app in the current directory
docker run --rm -v ${PWD}:/app boeegh/dotnet-runx:7.0
# manually specify the dll to run (the default .NET image behaviour)
docker run -v ${PWD}:/app boeegh/dotnet-runx:7.0 dotnet ./MyApp.dll
Please note this is an experimental image that may... explode at any time. Use with caution. Or not at all.