SchwarzIT / go-template

go/template is a tool for jumpstarting production-ready Golang projects quickly.
Apache License 2.0
177 stars 26 forks source link

OCI Labels by default for dockerfile #406

Open Spuxy opened 1 month ago

Spuxy commented 1 month ago

Is your feature request related to a problem? Please describe.

It would be good, that we have Dockerfile with labels/metadata information which would be propagated from Makefile for OCI standardisation and good practice for docker community

Describe the solution you'd like

LABEL org.opencontainers.image.created="${BUILD_DATE}" \
      org.opencontainers.image.title="${NAME_APP}" \
      org.opencontainers.image.authors="${AUTHOR}" \
      org.opencontainers.image.source="${URL_TO_YOUR_PROJECT}" \
      org.opencontainers.image.revision="${BUILD_REF}" \
      org.opencontainers.image.vendor="${YOUR_ORG}" // optional

Describe alternatives you've considered

I think thats pure optional this option but its nice to have it, if u build public docker image for others. There must be change in Makefile to generate it when the user builds new docker tag.

Search

Code of Conduct

Additional context

No response