Update apps/home-assistant/Dockerfile
This commit is contained in:
parent
d6b9c5dc82
commit
5f2902f30e
1 changed files with 6 additions and 25 deletions
|
@ -73,35 +73,16 @@ RUN \
|
||||||
libxslt-dev \
|
libxslt-dev \
|
||||||
postgresql-dev \
|
postgresql-dev \
|
||||||
unixodbc-dev \
|
unixodbc-dev \
|
||||||
&& \
|
&& pip install uv \
|
||||||
pip install uv \
|
&& curl -fsSL "https://github.com/home-assistant/core/archive/${VERSION}.tar.gz" | 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)
|
||||||
curl -fsSL "https://github.com/home-assistant/core/archive/${VERSION}.tar.gz" \
|
&& uv pip install --system --only-binary=:all: --find-links "${HOMEASSISTANT_WHEELS}" \
|
||||||
| tar xzf - -C /tmp --strip-components=1 \
|
|
||||||
&& \
|
|
||||||
case "${TARGETPLATFORM}" in \
|
|
||||||
'linux/amd64') \
|
|
||||||
export ARCH='amd64'; \
|
|
||||||
;; \
|
|
||||||
'linux/arm64') \
|
|
||||||
export ARCH='aarch64'; \
|
|
||||||
;; \
|
|
||||||
esac \
|
|
||||||
&& \
|
|
||||||
HOME_ASSISTANT_BASE=$(curl -fsSL "https://raw.githubusercontent.com/home-assistant/core/${VERSION}/build.yaml" | grep "${ARCH}: " | cut -d ":" -f3) \
|
|
||||||
&& \
|
|
||||||
uv pip install --system --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 --system --only-binary=:all: --find-links "${HOMEASSISTANT_WHEELS}" --requirement /tmp/requirements_all.txt \
|
||||||
uv pip install --system --only-binary=:all: --find-links "${HOMEASSISTANT_WHEELS}" \
|
&& uv pip install --system --only-binary=:all: --find-links "${HOMEASSISTANT_WHEELS}" homeassistant=="${VERSION}" \
|
||||||
--requirement /tmp/requirements_all.txt \
|
|
||||||
&& \
|
|
||||||
uv pip install --system --only-binary=:all: --find-links "${HOMEASSISTANT_WHEELS}" \
|
|
||||||
homeassistant=="${VERSION}" \
|
|
||||||
&& mkdir -p /config && chown nobody:nogroup -R /config \
|
&& mkdir -p /config && 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/*
|
||||||
|
|
||||||
COPY ./entrypoint.sh /entrypoint.sh
|
COPY ./entrypoint.sh /entrypoint.sh
|
||||||
|
|
||||||
USER nobody:nogroup
|
USER nobody:nogroup
|
||||||
|
|
Loading…
Reference in a new issue