From 826fe1c74a7391ce3a00cd0157306d1a58c92b28 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Thu, 28 Sep 2023 07:22:35 -0500 Subject: [PATCH] Add index to docker file --- Dockerfile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index e229f27cb3359..556addceaff8e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,8 +2,11 @@ ARG BUILD_FROM FROM ${BUILD_FROM} # Synchronize with homeassistant/core.py:async_stop +# Add Home Assistant wheels index for newer versions + ENV \ - S6_SERVICES_GRACETIME=220000 + S6_SERVICES_GRACETIME=220000 \ + EXTRA_INDEX_URL=https://wheels.home-assistant.io/musllinux-index/ ARG QEMU_CPU @@ -17,7 +20,7 @@ RUN \ --no-cache-dir \ --no-index \ --only-binary=:all: \ - --find-links "${WHEELS_LINKS}" \ + --extra-index-url "${EXTRA_INDEX_URL}" \ -r homeassistant/requirements.txt COPY requirements_all.txt home_assistant_frontend-* home_assistant_intents-* homeassistant/ @@ -41,7 +44,7 @@ RUN \ --no-cache-dir \ --no-index \ --only-binary=:all: \ - --find-links "${WHEELS_LINKS}" \ + --extra-index-url "${EXTRA_INDEX_URL}" \ -r homeassistant/requirements_all.txt ## Setup Home Assistant Core @@ -51,7 +54,7 @@ RUN \ --no-cache-dir \ --no-index \ --only-binary=:all: \ - --find-links "${WHEELS_LINKS}" \ + --extra-index-url "${EXTRA_INDEX_URL}" \ -e ./homeassistant \ && python3 -m compileall \ homeassistant/homeassistant