diff --git a/workers/Dockerfile b/workers/Dockerfile index 37eb418..96c85f1 100644 --- a/workers/Dockerfile +++ b/workers/Dockerfile @@ -3,9 +3,12 @@ # docker run ... ghcr.io/selfhostit/flowy-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/