A "hello world" application written in .NET Core.
From the hello-world-dotnet
subdirectory, run:
$ dotnet run
From the hello-world-dotnet
subdirectory, run:
$ docker build . -t hello-world-dotnet:latest
$ docker run -it --rm -e ASPNETCORE_URLS=http://+:5000 -e ASPNETCORE_ENVIRONMENT=Development -p 5000:5000 hello-world-dotnet:latest
From the hello-world-dotnet
subdirectory, run:
$ docker-compose up --build
This application serves a simple JSON payload at the root directory:
$ curl http://localhost:5000
A Docker image for this application is also available on GitHub Container Registry. You can pull this image like so:
$ docker pull ghcr.io/liatrio/hello-world-dotnet:latest
Similar to the instructions above, this can be ran locally like this:
$ docker run -it --rm -e ASPNETCORE_URLS=http://+:5000 -e ASPNETCORE_ENVIRONMENT=Development -p 5000:5000 ghcr.io/liatrio/hello-world-dotnet:latest