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 \