From 4972d6645135f4de445cd5c05ae51fcdf98c82a1 Mon Sep 17 00:00:00 2001 From: egguy Date: Wed, 15 Feb 2023 00:57:25 +1100 Subject: [PATCH] Updated docker filer --- grott-current/Dockerfile | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/grott-current/Dockerfile b/grott-current/Dockerfile index 5bbdef6..c4b1e84 100644 --- a/grott-current/Dockerfile +++ b/grott-current/Dockerfile @@ -32,3 +32,29 @@ RUN pip3 install paho-mqtt requests influxdb influxdb RUN chmod a+x script.sh CMD [ "./script.sh" ] + +# Build arguments +ARG BUILD_ARCH +ARG BUILD_DATE +ARG BUILD_DESCRIPTION +ARG BUILD_NAME +ARG BUILD_REF +ARG BUILD_REPOSITORY +ARG BUILD_VERSION + +# Labels +LABEL \ + io.hass.name="${BUILD_NAME}" \ + io.hass.description="${BUILD_DESCRIPTION}" \ + io.hass.arch="${BUILD_ARCH}" \ + io.hass.type="addon" \ + io.hass.version=${BUILD_VERSION} \ + maintainer="egguy " \ + org.opencontainers.image.title="${BUILD_NAME}" \ + org.opencontainers.image.description="${BUILD_DESCRIPTION}" \ + org.opencontainers.image.authors="egguy " \ + org.opencontainers.image.source="https://github.com/${BUILD_REPOSITORY}" \ + org.opencontainers.image.documentation="https://github.com/${BUILD_REPOSITORY}/blob/main/README.md" \ + org.opencontainers.image.created=${BUILD_DATE} \ + org.opencontainers.image.revision=${BUILD_REF} \ + org.opencontainers.image.version=${BUILD_VERSION} \ No newline at end of file