Compare commits

...

2 Commits

Author SHA1 Message Date
Robert Resch
dd8a6b4934 Update script/hassfest/docker.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-04-15 00:17:57 +02:00
Robert Resch
bc64666b96 Use COPY instead pip to install uv in the docker image 2026-04-14 15:08:27 +00:00
2 changed files with 13 additions and 19 deletions

16
Dockerfile generated
View File

@@ -22,22 +22,20 @@ ENV \
# Home Assistant S6-Overlay
COPY rootfs /
WORKDIR /usr/src
# Add go2rtc binary
COPY --from=ghcr.io/alexxit/go2rtc@sha256:675c318b23c06fd862a61d262240c9a63436b4050d177ffc68a32710d9e05bae /usr/local/bin/go2rtc /bin/go2rtc
RUN \
# Verify go2rtc can be executed
go2rtc --version \
# Install uv
&& pip3 install uv==0.11.1
WORKDIR /usr/src
# Add uv binary
COPY --from=ghcr.io/astral-sh/uv:0.11.1 /uv /bin/uv
## Setup Home Assistant Core dependencies
COPY requirements.txt homeassistant/
COPY homeassistant/package_constraints.txt homeassistant/homeassistant/
RUN \
uv pip install \
# Verify go2rtc can be executed
go2rtc --version \
&& uv pip install \
--no-build \
-r homeassistant/requirements.txt

View File

@@ -37,22 +37,18 @@ ENV \
# Home Assistant S6-Overlay
COPY rootfs /
WORKDIR /usr/src
# Add go2rtc binary
COPY --from=ghcr.io/alexxit/go2rtc@sha256:{go2rtc} /usr/local/bin/go2rtc /bin/go2rtc
RUN \
# Verify go2rtc can be executed
go2rtc --version \
# Install uv
&& pip3 install uv=={uv}
WORKDIR /usr/src
## Setup Home Assistant Core dependencies
COPY requirements.txt homeassistant/
COPY homeassistant/package_constraints.txt homeassistant/homeassistant/
RUN \
uv pip install \
RUN --mount=from=ghcr.io/astral-sh/uv:{uv},source=/uv,target=/bin/uv \
# Verify go2rtc can be executed
go2rtc --version \
&& uv pip install \
--no-build \
-r homeassistant/requirements.txt