From 505aa3d3b219520b5b18e860e4ca393cb3b6c283 Mon Sep 17 00:00:00 2001 From: Phil Smith Date: Fri, 24 Apr 2026 13:54:29 +0100 Subject: [PATCH] Force uv to manage python itself By default uv will use a system installed version of python when available. We dont want this. https://docs.astral.sh/uv/concepts/python-versions/#requiring-or-disabling-managed-python-versions --- template/Dockerfile.jinja | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/template/Dockerfile.jinja b/template/Dockerfile.jinja index 87d417ac..342d04c1 100644 --- a/template/Dockerfile.jinja +++ b/template/Dockerfile.jinja @@ -21,7 +21,7 @@ ENV UV_PYTHON_INSTALL_DIR=/python # Sync the project without its dev dependencies RUN --mount=type=cache,target=/root/.cache/uv \ - uv sync --locked --no-editable --no-dev + uv sync --locked --no-editable --no-dev --managed-python {% if docker_debug %} FROM build AS debug