From ba82eb062045fd6c240dedc0a22d280c62089e69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20=C4=8Cerm=C3=A1k?= Date: Mon, 1 Dec 2025 19:43:19 +0100 Subject: [PATCH] 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. --- Dockerfile | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/Dockerfile b/Dockerfile index 39e762fd1..979dd3681 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,9 +8,7 @@ ENV \ UV_SYSTEM_PYTHON=true ARG \ - COSIGN_VERSION \ - BUILD_ARCH \ - QEMU_CPU + COSIGN_VERSION # Install base WORKDIR /usr/src @@ -32,15 +30,9 @@ RUN \ && pip3 install uv==0.8.9 # Install requirements -COPY requirements.txt . RUN \ - if [ "${BUILD_ARCH}" = "i386" ]; then \ - setarch="linux32"; \ - else \ - setarch=""; \ - fi \ - && ${setarch} uv pip install --compile-bytecode --no-cache --no-build -r requirements.txt \ - && rm -f requirements.txt + --mount=type=bind,source=./requirements.txt,target=/usr/src/requirements.txt \ + uv pip install --compile-bytecode --no-cache --no-build -r requirements.txt # Install Home Assistant Supervisor COPY . supervisor