From f87ec0a7b8f2bab2fed1f5c290df017dcfe60e6c Mon Sep 17 00:00:00 2001 From: Robert Resch Date: Thu, 16 Apr 2026 14:30:54 +0200 Subject: [PATCH] Just copy explicit files in the Dockerfile (#168197) --- Dockerfile | 5 ++--- script/hassfest/docker.py | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 19ca06098f4..e0bb3ce2d7f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -28,8 +28,7 @@ COPY rootfs / COPY --from=ghcr.io/alexxit/go2rtc@sha256:675c318b23c06fd862a61d262240c9a63436b4050d177ffc68a32710d9e05bae /usr/local/bin/go2rtc /bin/go2rtc ## Setup Home Assistant Core dependencies -COPY requirements.txt homeassistant/ -COPY homeassistant/package_constraints.txt homeassistant/homeassistant/ +COPY --parents requirements.txt homeassistant/package_constraints.txt homeassistant/ RUN \ # Verify go2rtc can be executed go2rtc --version \ @@ -49,7 +48,7 @@ RUN \ -r homeassistant/requirements_all.txt ## Setup Home Assistant Core -COPY . homeassistant/ +COPY --parents LICENSE* README* homeassistant/ pyproject.toml homeassistant/ RUN \ uv pip install \ -e ./homeassistant \ diff --git a/script/hassfest/docker.py b/script/hassfest/docker.py index e54b34d3a12..4c6a10b9b29 100644 --- a/script/hassfest/docker.py +++ b/script/hassfest/docker.py @@ -43,8 +43,7 @@ COPY rootfs / COPY --from=ghcr.io/alexxit/go2rtc@sha256:{go2rtc} /usr/local/bin/go2rtc /bin/go2rtc ## Setup Home Assistant Core dependencies -COPY requirements.txt homeassistant/ -COPY homeassistant/package_constraints.txt homeassistant/homeassistant/ +COPY --parents requirements.txt homeassistant/package_constraints.txt homeassistant/ RUN \ # Verify go2rtc can be executed go2rtc --version \ @@ -64,7 +63,7 @@ RUN \ -r homeassistant/requirements_all.txt ## Setup Home Assistant Core -COPY . homeassistant/ +COPY --parents LICENSE* README* homeassistant/ pyproject.toml homeassistant/ RUN \ uv pip install \ -e ./homeassistant \