Skip to content

Install uv using COPY and bump to latest version#4376

Merged
quis merged 3 commits intomainfrom
install-uv-docker
Feb 11, 2025
Merged

Install uv using COPY and bump to latest version#4376
quis merged 3 commits intomainfrom
install-uv-docker

Conversation

@quis
Copy link
Member

@quis quis commented Feb 5, 2025

Put venv location in environment variable

As suggested in astral-sh/uv#11214 (comment)

Without this we’re making an assumption about the venv existing (that we know because we just created it) that uv doesn’t know.

Install uv from Docker registry

This is one of the recommended ways to install uv in their documentation: https://docs.astral.sh/uv/guides/integration/docker/#installing-uv

It means we don’t need to specify the version number 3 times.

Bump uv to latest version

We can safely do this because:

quis added 3 commits February 5, 2025 10:55
As suggested in:
astral-sh/uv#11214 (comment)

Without this we’re making an assumption about the venv existing (that we
know because we just created it) that uv doesn’t know.
This is one of the recommended ways to install uv in their
documentation:
https://docs.astral.sh/uv/guides/integration/docker/#installing-uv
We can safely do this because:
- the regression in 0.5.27 was fixed in https://github.com/astral-sh/uv/pull/11218/files
- we added the location of the venv to an environment variable in this
  commit’s grandparent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments