Skip to content

Commit 1dfadc8

Browse files
authored
fix: Force uv to manage python itself (#335)
By default uv will use a system installed version of python when available. We don't want this as later in the Dockerfile we require /python to exist which it wont if uv has used a system installed version. This will happen if the requested version of python is the same as the default version in the base image. https://docs.astral.sh/uv/concepts/python-versions/#requiring-or-disabling-managed-python-versions
2 parents 47dcc42 + 505aa3d commit 1dfadc8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

template/Dockerfile.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ ENV UV_PYTHON_INSTALL_DIR=/python
2121

2222
# Sync the project without its dev dependencies
2323
RUN --mount=type=cache,target=/root/.cache/uv \
24-
uv sync --locked --no-editable --no-dev
24+
uv sync --locked --no-editable --no-dev --managed-python
2525

2626
{% if docker_debug %}
2727
FROM build AS debug

0 commit comments

Comments
 (0)