From 5fead1ddcb4a1f52e669571c67b08b8334440e82 Mon Sep 17 00:00:00 2001 From: Saswat Padhi Date: Tue, 7 Jan 2025 21:04:48 -0800 Subject: [PATCH] upgrade hass to 2025.1.1 and hacs to 2.0.2 --- Dockerfile | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5c3ba88..36093ef 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,7 @@ -FROM homeassistant/home-assistant:2024.12.5 +FROM homeassistant/home-assistant:2025.1.1 -ARG HACS_VERSION=2.0.1 +ARG HACS_VERSION=2.0.2 +ARG HACS_SHA_512=ca02c25166159bb660ab36dd4bdccecbca4a596fb154e51a101b1cdb643b6fc3600e727ae5d69ba3318eba73f6d4319b70a2bfcf0ebd3d2da2a0bb3ed80893a7 COPY run.sh /etc/services.d/home-assistant/run @@ -10,12 +11,15 @@ ADD https://github.com/hacs/integration/releases/download/${HACS_VERSION}/hacs.z # Add `iputils` package for `ping` entity to work correctly. # See: https://community.home-assistant.io/t/device-tracker-ping-entity-not-appearing/328005/9 -RUN apk add --update --no-cache \ +RUN cd /tmp \ + && echo "${HACS_SHA_512} hacs.zip" > hacs.zip.sha512 \ + && sha512sum -c hacs.zip.sha512 \ + && apk add --update --no-cache \ iputils \ && mkdir /hacs \ && cd /hacs \ && unzip /tmp/hacs.zip \ - && rm /tmp/hacs.zip + && rm /tmp/hacs.zip /tmp/hacs.zip.sha512 EXPOSE 8123 VOLUME ["/config","/media"]