dotnet / sdk-container-builds

Libraries and build tooling to create container images from .NET projects using MSBuild
https://learn.microsoft.com/en-us/dotnet/core/docker/publish-as-container
MIT License
176 stars 30 forks source link

Document ability to export a tar.gz version of the image #497

Open baronfel opened 10 months ago

baronfel commented 10 months ago

This was added in https://github.com/dotnet/sdk/pull/35151.

Short version - a new property ContainerArchiveOutputPath is available. If set to a full path, that path is the directory of the generated image. If a relative path is provided, that path is anchored at the current working directory. A file with the name $(ContainerRepository).tar.gz is created at that location containing all of the tags built.