2023-11-29 11:26:50 +01:00
|
|
|
# Automatically generated by hassfest.
|
|
|
|
|
#
|
|
|
|
|
# To update, run python3 -m script.hassfest -p docker
|
2020-03-23 00:39:37 +01:00
|
|
|
ARG BUILD_FROM
|
2020-03-23 01:00:00 +01:00
|
|
|
FROM ${BUILD_FROM}
|
2020-03-23 00:39:37 +01:00
|
|
|
|
2025-11-25 17:04:15 +01:00
|
|
|
LABEL \
|
|
|
|
|
io.hass.type="core" \
|
|
|
|
|
org.opencontainers.image.authors="The Home Assistant Authors" \
|
|
|
|
|
org.opencontainers.image.description="Open-source home automation platform running on Python 3" \
|
|
|
|
|
org.opencontainers.image.documentation="https://www.home-assistant.io/docs/" \
|
|
|
|
|
org.opencontainers.image.licenses="Apache-2.0" \
|
|
|
|
|
org.opencontainers.image.source="https://github.com/home-assistant/core" \
|
|
|
|
|
org.opencontainers.image.title="Home Assistant" \
|
|
|
|
|
org.opencontainers.image.url="https://www.home-assistant.io/"
|
|
|
|
|
|
2021-01-11 11:24:02 +01:00
|
|
|
# Synchronize with homeassistant/core.py:async_stop
|
2020-04-10 22:04:50 +02:00
|
|
|
ENV \
|
2024-03-22 16:50:07 +01:00
|
|
|
S6_SERVICES_GRACETIME=240000 \
|
2024-11-05 22:18:41 +01:00
|
|
|
UV_SYSTEM_PYTHON=true \
|
|
|
|
|
UV_NO_CACHE=true
|
2020-04-10 22:04:50 +02:00
|
|
|
|
2025-02-18 20:31:41 +01:00
|
|
|
# Home Assistant S6-Overlay
|
|
|
|
|
COPY rootfs /
|
|
|
|
|
|
2025-11-24 12:52:58 +01:00
|
|
|
# Add go2rtc binary
|
2025-12-18 14:00:50 +01:00
|
|
|
COPY --from=ghcr.io/alexxit/go2rtc@sha256:f394f6329f5389a4c9a7fc54b09fdec9621bbb78bf7a672b973440bbdfb02241 /usr/local/bin/go2rtc /bin/go2rtc
|
2025-11-24 12:52:58 +01:00
|
|
|
|
2025-02-18 20:31:41 +01:00
|
|
|
RUN \
|
|
|
|
|
# Verify go2rtc can be executed
|
2025-11-24 12:52:58 +01:00
|
|
|
go2rtc --version \
|
|
|
|
|
# Install uv
|
2026-01-23 10:46:16 +01:00
|
|
|
&& pip3 install uv==0.9.26
|
2024-03-22 16:50:07 +01:00
|
|
|
|
2020-03-23 00:39:37 +01:00
|
|
|
WORKDIR /usr/src
|
|
|
|
|
|
2021-12-01 12:20:00 +00:00
|
|
|
## Setup Home Assistant Core dependencies
|
|
|
|
|
COPY requirements.txt homeassistant/
|
|
|
|
|
COPY homeassistant/package_constraints.txt homeassistant/homeassistant/
|
|
|
|
|
RUN \
|
2024-03-22 16:50:07 +01:00
|
|
|
uv pip install \
|
|
|
|
|
--no-build \
|
2023-01-12 11:59:44 +01:00
|
|
|
-r homeassistant/requirements.txt
|
|
|
|
|
|
2023-01-13 12:14:25 +01:00
|
|
|
COPY requirements_all.txt home_assistant_frontend-* home_assistant_intents-* homeassistant/
|
2021-12-01 12:20:00 +00:00
|
|
|
RUN \
|
2024-03-23 11:22:38 +01:00
|
|
|
if ls homeassistant/home_assistant_*.whl 1> /dev/null 2>&1; then \
|
|
|
|
|
uv pip install homeassistant/home_assistant_*.whl; \
|
2023-01-13 09:56:29 +01:00
|
|
|
fi \
|
2024-09-23 14:17:37 +02:00
|
|
|
&& uv pip install \
|
|
|
|
|
--no-build \
|
|
|
|
|
-r homeassistant/requirements_all.txt
|
2021-12-01 12:20:00 +00:00
|
|
|
|
|
|
|
|
## Setup Home Assistant Core
|
2020-03-23 00:39:37 +01:00
|
|
|
COPY . homeassistant/
|
2020-04-10 22:04:50 +02:00
|
|
|
RUN \
|
2024-03-22 16:50:07 +01:00
|
|
|
uv pip install \
|
2023-01-12 11:59:44 +01:00
|
|
|
-e ./homeassistant \
|
|
|
|
|
&& python3 -m compileall \
|
|
|
|
|
homeassistant/homeassistant
|
2020-03-23 00:39:37 +01:00
|
|
|
|
|
|
|
|
WORKDIR /config
|