From 8b67186c93264354cbbfbc923a96afd270934780 Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Thu, 20 Mar 2025 16:04:58 -0700 Subject: [PATCH] make sure uv is using the right python binary --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index a16d6320..7b3ee621 100644 --- a/Dockerfile +++ b/Dockerfile @@ -227,12 +227,14 @@ WORKDIR "$CODE_DIR" # COPY --chown=root:root --chmod=755 pyproject.toml "$CODE_DIR/" RUN --mount=type=cache,target=/root/.cache/uv,sharing=locked,id=uv-$TARGETARCH$TARGETVARIANT \ echo "[+] UV Creating /venv using python ${PYTHON_VERSION} for ${TARGETPLATFORM} (provided by base image)..." \ + && uv python find --system \ && uv venv /venv ENV VIRTUAL_ENV=/venv PATH="/venv/bin:$PATH" RUN uv pip install setuptools pip \ && ( \ which python3 && python3 --version \ && which uv && uv version \ + && uv python find --system && uv python find \ && echo -e '\n\n' \ ) | tee -a /VERSION.txt