From 74d9990ad0c67b9d9df890d1eb58e3025a442f5a Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 18 Nov 2026 09:44:16 +0000 Subject: [PATCH] Build the worker image again on armv7 The uv image is pinned by digest, and that index has no armv7 build, so the armv7 worker build on main fails with "no match for platform in manifest". uv only runs on the build machine, so take it for the build platform, as reckon already does. --- workers/Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/workers/Dockerfile b/workers/Dockerfile index 015e81d..cb8f1df 100644 --- a/workers/Dockerfile +++ b/workers/Dockerfile @@ -3,9 +3,12 @@ # docker run ... ghcr.io/selfhostit/troye-worker python my_worker.py # Base images and uv are pinned by digest; Dependabot moves the digests weekly. +# uv only runs on the build machine; its image has no armv7 build, so it is taken +# for the build platform instead of each target one. +FROM --platform=$BUILDPLATFORM ghcr.io/astral-sh/uv:0.11.32@sha256:df4cae8f3a96d175e2e5f992e597550000edbe78fdc2594d5cd8de1a217f504c AS uv # --- build: resolve the locked dependencies and build the kit's wheel --- FROM --platform=$BUILDPLATFORM python:3.15-slim@sha256:65a65fc7b30b06cb6df4930fd4650697cb23f4c2698ab81fc87e4b031bc36928 AS build -COPY --from=ghcr.io/astral-sh/uv:0.11.32@sha256:df4cae8f3a96d175e2e5f992e597550000edbe78fdc2594d5cd8de1a217f504c /uv /usr/local/bin/uv +COPY --from=uv /uv /usr/local/bin/uv WORKDIR /src COPY pyproject.toml uv.lock README.md ./ COPY src/ src/