mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-12-20 02:18:59 +00:00
Clean up Dockerfile after dropping deprecated architectures (#6373)
Clean up unnecessary arguments that were needed for deprecated architectures, bind-mount requirements file to reduce image bloat.
This commit is contained in:
14
Dockerfile
14
Dockerfile
@@ -8,9 +8,7 @@ ENV \
|
|||||||
UV_SYSTEM_PYTHON=true
|
UV_SYSTEM_PYTHON=true
|
||||||
|
|
||||||
ARG \
|
ARG \
|
||||||
COSIGN_VERSION \
|
COSIGN_VERSION
|
||||||
BUILD_ARCH \
|
|
||||||
QEMU_CPU
|
|
||||||
|
|
||||||
# Install base
|
# Install base
|
||||||
WORKDIR /usr/src
|
WORKDIR /usr/src
|
||||||
@@ -32,15 +30,9 @@ RUN \
|
|||||||
&& pip3 install uv==0.8.9
|
&& pip3 install uv==0.8.9
|
||||||
|
|
||||||
# Install requirements
|
# Install requirements
|
||||||
COPY requirements.txt .
|
|
||||||
RUN \
|
RUN \
|
||||||
if [ "${BUILD_ARCH}" = "i386" ]; then \
|
--mount=type=bind,source=./requirements.txt,target=/usr/src/requirements.txt \
|
||||||
setarch="linux32"; \
|
uv pip install --compile-bytecode --no-cache --no-build -r requirements.txt
|
||||||
else \
|
|
||||||
setarch=""; \
|
|
||||||
fi \
|
|
||||||
&& ${setarch} uv pip install --compile-bytecode --no-cache --no-build -r requirements.txt \
|
|
||||||
&& rm -f requirements.txt
|
|
||||||
|
|
||||||
# Install Home Assistant Supervisor
|
# Install Home Assistant Supervisor
|
||||||
COPY . supervisor
|
COPY . supervisor
|
||||||
|
|||||||
Reference in New Issue
Block a user