diff --git a/hassfest/Dockerfile b/hassfest/Dockerfile index 04fb7e5..d223f85 100644 --- a/hassfest/Dockerfile +++ b/hassfest/Dockerfile @@ -1,9 +1,19 @@ FROM ghcr.io/home-assistant/home-assistant:beta +SHELL ["/bin/bash", "-o", "pipefail", "-c"] + COPY entrypoint.sh /entrypoint.sh COPY requirements.txt . -RUN uv pip install -r requirements.txt +RUN \ + uv pip install -r requirements.txt \ + # Install requirements from core + && curl -LJO https://raw.githubusercontent.com/home-assistant/core/rc/requirements_test.txt \ + && uv pip install $(grep -e "^pipdeptree" -e "^tqdm" requirements_test.txt) \ + && rm requirements_test.txt \ + && curl -LJO https://raw.githubusercontent.com/home-assistant/core/rc/requirements_test_pre_commit.txt \ + && uv pip install $(grep -e "^ruff" requirements_test_pre_commit.txt) \ + && rm requirements_test_pre_commit.txt WORKDIR "/github/workspace" ENTRYPOINT ["/entrypoint.sh"] diff --git a/hassfest/requirements.txt b/hassfest/requirements.txt index 0a0a075..b31981d 100644 --- a/hassfest/requirements.txt +++ b/hassfest/requirements.txt @@ -1,4 +1 @@ -pipdeptree==2.16.1 stdlib-list==0.10.0 -tqdm==4.66.2 -ruff==0.3.4