Skip to content
This repository has been archived by the owner on Jan 27, 2023. It is now read-only.
/ hello-world-dotnet Public archive

A "hello world" application written in .NET Core

Notifications You must be signed in to change notification settings

liatrio/hello-world-dotnet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hello-world-dotnet

A "hello world" application written in .NET Core.

Running the Application

From the hello-world-dotnet subdirectory, run:

$ dotnet run

Docker

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

Docker Compose

From the hello-world-dotnet subdirectory, run:

$ docker-compose up --build

Using the Application

This application serves a simple JSON payload at the root directory:

$ curl http://localhost:5000

Pulling from the Registry

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

About

A "hello world" application written in .NET Core

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages