container publishing

Using dotnet publish to build a container image of an app directly, without writing a Dockerfile.

In more detail

dotnet publish -c Release -p:PublishProfile=DefaultContainer produces an image based on a Microsoft .NET base image. Keep the base image, processor architecture and patch policy explicit in the deployment files.

Example

dotnet publish -c Release -p:PublishProfile=DefaultContainer

Related terms

Taught in

References