Add Default Labels to `FromDockerfile `
Open
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
Assessment
This issue has not been assessed yet.