From 455862055314febe7ff41bb18621e38da28c52b8 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 5 Jan 2022 16:32:51 -0500 Subject: [PATCH] additional docker fields --- Dockerfile | 8 ++++++++ config.json | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index acf81e4..117100a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,5 @@ ARG BUILD_FROM +ARG BUILD_VERSION # ================ # Python Build Stage # ================ @@ -38,7 +39,14 @@ COPY api/src /data/src ENV HASSIO_TOKEN "" +ENV BUILD_VERSION $BUILD_VERSION EXPOSE 8000 +LABEL \ + io.hass.version="${BUILD_VERSION}" \ + io.hass.type="addon" \ + io.hass.arch="armhf|aarch64|i386|amd64" + CMD [ "/data/venv/bin/python", "-m", "uvicorn", "src.app:app", "--host", "0.0.0.0", "--port", "8000" ] + diff --git a/config.json b/config.json index 6207858..ac94fea 100644 --- a/config.json +++ b/config.json @@ -1,9 +1,9 @@ { "name": "Shortumation", - "version": "0.0.0", + "version": "0.0.2", "slug": "shortumation", "url": "https://github.com/asosnovsky/Shortumation", - "description": "A homeassitant addon which provides better UI for the automation.", + "description": "A homeassitant addon which provides better UI for automations & scripts.", "arch": [ "armhf", "armv7",