Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 721 Bytes

ZeroToContainer.md

File metadata and controls

25 lines (17 loc) · 721 Bytes

Using the NuGet package to do an end-to-end container build

This guidance will track the most up-to-date version of the package and tasks. You should expect it to shrink noticeably over time!

Prerequisites

Usage

# create a new project and move to its directory
dotnet new web -n my-awesome-container-app
cd my-awesome-container-app

# publish your project
dotnet publish --os linux --arch x64 -t:PublishContainer

# run your app
docker run -it --rm -p 5010:8080 my-awesome-container-app:latest

Now you can go to localhost:5010 and you should see the Hello World! text!