Skip to content

Add OpenContainers Labels to Dockerfile #858

@molhamalnasr

Description

@molhamalnasr

Is your feature request related to a problem? Please describe.
Currently, the Dockerfile lacks standard labels, which makes it less compatible with tools like RenovateBot and the OpenContainers labeling guidelines. This can lead to difficulties in managing and tracking the image.

Describe the solution you'd like
Add the following labels to the Dockerfile to make the image more standard and compatible:

  • "org.label-schema.version": "$VERSION_TAG"
  • "org.opencontainers.image.licenses": "Apache-2.0 license"
  • "org.opencontainers.image.ref.name": "b4bz/homer:22-alpine3.20"
  • "org.opencontainers.image.source": "https://github.com/bastienwirtz/homer"
  • "org.opencontainers.image.url": "https://homer-demo.netlify.app/"
  • "org.opencontainers.image.version": "$VERSION_TAG"

Describe alternatives you've considered
An alternative solution could be to manually manage the image metadata, but this approach is less efficient and prone to errors.

Additional context
Adding these labels will enhance compatibility with tools like RenovateBot and improve the readability of the Changelog file using the 'org.opencontainers.image.source' label see: https://docs.renovatebot.com/modules/datasource/docker/#description

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions