From a5748d620bdff04abc145cb6cef89855d7776d2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andre=20Kl=C3=A4rner?= Date: Sun, 11 Aug 2024 21:59:44 +0200 Subject: [PATCH] fix: Add OCI labels to image (#23578) this adds Docker Labels according to the OCI Image Format Specification which means that tools like renovate can automatically find the changelogs from a docker image, helping the people like me judge the impact of upgrading their z2m instance from the pull request renovate generates. --- docker/Dockerfile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docker/Dockerfile b/docker/Dockerfile index b059b1c3f9..c4118343bf 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -18,6 +18,13 @@ RUN apk add --no-cache --virtual .buildtools make gcc g++ python3 linux-headers # Release FROM base as release +LABEL org.opencontainers.image.authors="Koen Kanters" +LABEL org.opencontainers.image.title="zigbee2mqtt" +LABEL org.opencontainers.image.description="Zigbee to MQTT bridge using Zigbee-herdsman" +LABEL org.opencontainers.image.url="https://github.com/Koenkk/zigbee2mqtt" +LABEL org.opencontainers.image.documentation="https://www.zigbee2mqtt.io/" +LABEL org.opencontainers.image.source="https://github.com/Koenkk/zigbee2mqtt" + COPY --from=dependencies_and_build /app/node_modules ./node_modules COPY dist ./dist COPY package.json LICENSE index.js data/configuration.yaml data/configuration.example.yaml ./