fix: show Home Assistant add-on version in EOSdash (#1356)

Align add-on and EOSdash version.
This commit is contained in:
Normann
2026-09-26 16:57:49 +02:00
committed by GitHub
parent 4fe879ddd2
commit fca07a0c62
3 changed files with 44 additions and 2 deletions
+7
View File
@@ -10,6 +10,11 @@ ARG PYTHON_VERSION=3.13.15
# If BUILD_FROM is set (Home Assistant), use it; otherwise use python-slim.
FROM ${BUILD_FROM:-python:${PYTHON_VERSION}-slim} AS builder
# Home Assistant supplies BUILD_VERSION from config.yaml. Use it for the
# installed package as well as the dashboard when building an add-on.
ARG BUILD_VERSION=dev
ENV EOS_BUILD_VERSION=${BUILD_VERSION}
# uv: pinned, copied as a static binary (no extra Python packages installed).
COPY --from=ghcr.io/astral-sh/uv:0.12.7 /uv /bin/uv
@@ -63,6 +68,8 @@ LABEL \
org.opencontainers.image.source="https://github.com/Akkudoktor-EOS/EOS" \
org.opencontainers.image.licenses="Apache-2.0"
ENV EOS_BUILD_VERSION=${BUILD_VERSION}
ENV EOS_DIR="/opt/eos"
# Create persistent data directory similar to home assistant add-on
# - EOS_DATA_DIR: Persistent data directory