microsoft / microsoft/aspire

Add Default Labels to `FromDockerfile `

Open
#4,523 6 comments 0 reactions 0 assignees View on GitHub
area-app-model
Dominant language
C#
Stars
6.3k
Forks
991
Avg merge
2d 15h
Merged PRs (30d)
196

Description

Follow on from https://github.com/dotnet/aspire/issues/4346#issuecomment-2169204891.

When building images with `FromDockerfile`, we should consider adding some default labels to the image.

This could include open container labels, similar to those the [Dotnet SDK ](https://github.com/dotnet/sdk-container-builds/blob/main/docs/ContainerCustomization.md#default-container-labels), as well as some aspire specific labels (e.g. project name, resource name, aspire version). The aspire specific labels should be consistent with #4425.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.