Update apps/home-assistant/Dockerfile
This commit is contained in:
parent
6d2670bed9
commit
2029e1796f
1 changed files with 10 additions and 17 deletions
|
@ -75,29 +75,22 @@ RUN \
|
||||||
libxslt-dev \
|
libxslt-dev \
|
||||||
postgresql-dev \
|
postgresql-dev \
|
||||||
unixodbc-dev \
|
unixodbc-dev \
|
||||||
&& \
|
&& rm -rf /config/deps/orjson || true \
|
||||||
rm -rf /config/deps/orjson || true \
|
&& pip install uv \
|
||||||
&& \
|
&& curl -fsSL "https://github.com/home-assistant/core/archive/${VERSION}.tar.gz" \
|
||||||
pip install uv \
|
|
||||||
&& \
|
|
||||||
pip install orjson --target /config/deps \
|
|
||||||
&& \
|
|
||||||
curl -fsSL "https://github.com/home-assistant/core/archive/${VERSION}.tar.gz" \
|
|
||||||
| tar xzf - -C /tmp --strip-components=1 \
|
| tar xzf - -C /tmp --strip-components=1 \
|
||||||
&& \
|
&& HOME_ASSISTANT_BASE=$(curl -fsSL "https://raw.githubusercontent.com/home-assistant/core/${VERSION}/build.yaml" | grep "amd64: " | cut -d ":" -f3) \
|
||||||
HOME_ASSISTANT_BASE=$(curl -fsSL "https://raw.githubusercontent.com/home-assistant/core/${VERSION}/build.yaml" | grep "amd64: " | cut -d ":" -f3) \
|
&& uv pip install --only-binary=:all: --find-links "${HOMEASSISTANT_WHEELS}" \
|
||||||
&& \
|
|
||||||
uv pip install --only-binary=:all: --find-links "${HOMEASSISTANT_WHEELS}" \
|
|
||||||
--requirement "https://raw.githubusercontent.com/home-assistant/docker/${HOME_ASSISTANT_BASE}/requirements.txt" \
|
--requirement "https://raw.githubusercontent.com/home-assistant/docker/${HOME_ASSISTANT_BASE}/requirements.txt" \
|
||||||
&& \
|
&& uv pip install --only-binary=:all: --find-links "${HOMEASSISTANT_WHEELS}" \
|
||||||
uv pip install --only-binary=:all: --find-links "${HOMEASSISTANT_WHEELS}" \
|
|
||||||
--requirement /tmp/requirements_all.txt \
|
--requirement /tmp/requirements_all.txt \
|
||||||
&& \
|
&& uv pip install --only-binary=:all: --find-links "${HOMEASSISTANT_WHEELS}" \
|
||||||
uv pip install --only-binary=:all: --find-links "${HOMEASSISTANT_WHEELS}" \
|
|
||||||
homeassistant=="${VERSION}" \
|
homeassistant=="${VERSION}" \
|
||||||
&& curl -L https://github.com/AlexxIT/go2rtc/releases/download/v1.9.8/go2rtc_linux_amd64 --output /bin/go2rtc \
|
&& curl -L https://github.com/AlexxIT/go2rtc/releases/download/v1.9.8/go2rtc_linux_amd64 --output /bin/go2rtc \
|
||||||
&& chmod +x /bin/go2rtc \
|
&& chmod +x /bin/go2rtc \
|
||||||
&& mkdir -p /config && chown nobody:nogroup -R /config \
|
&& mkdir -p /config \
|
||||||
|
&& uv pip install orjson --target /config/deps \
|
||||||
|
&& chown nobody:nogroup -R /config \
|
||||||
&& apk del --purge .build-deps \
|
&& apk del --purge .build-deps \
|
||||||
&& rm -rf /root/.cache /root/.cargo /tmp/*
|
&& rm -rf /root/.cache /root/.cargo /tmp/*
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue