@@ -31,7 +31,7 @@ $ docker run --rm -it ghcr.io/astral-sh/uv:debian uv --help
3131The following distroless images are available:
3232
3333- ` ghcr.io/astral-sh/uv:latest `
34- - ` ghcr.io/astral-sh/uv:{major}.{minor}.{patch} ` , e.g., ` ghcr.io/astral-sh/uv:0.8.14 `
34+ - ` ghcr.io/astral-sh/uv:{major}.{minor}.{patch} ` , e.g., ` ghcr.io/astral-sh/uv:0.8.15 `
3535- ` ghcr.io/astral-sh/uv:{major}.{minor} ` , e.g., ` ghcr.io/astral-sh/uv:0.8 ` (the latest patch
3636 version)
3737
@@ -95,7 +95,7 @@ And the following derived images are available:
9595
9696As with the distroless image, each derived image is published with uv version tags as
9797` ghcr.io/astral-sh/uv:{major}.{minor}.{patch}-{base} ` and
98- ` ghcr.io/astral-sh/uv:{major}.{minor}-{base} ` , e.g., ` ghcr.io/astral-sh/uv:0.8.14 -alpine ` .
98+ ` ghcr.io/astral-sh/uv:{major}.{minor}-{base} ` , e.g., ` ghcr.io/astral-sh/uv:0.8.15 -alpine ` .
9999
100100In addition, starting with ` 0.8 ` each derived image also sets ` UV_TOOL_BIN_DIR ` to ` /usr/local/bin `
101101to allow ` uv tool install ` to work as expected with the default user.
@@ -136,7 +136,7 @@ Note this requires `curl` to be available.
136136In either case, it is best practice to pin to a specific uv version, e.g., with:
137137
138138``` dockerfile
139- COPY --from=ghcr.io/astral-sh/uv:0.8.14 /uv /uvx /bin/
139+ COPY --from=ghcr.io/astral-sh/uv:0.8.15 /uv /uvx /bin/
140140```
141141
142142!!! tip
@@ -154,7 +154,7 @@ COPY --from=ghcr.io/astral-sh/uv:0.8.14 /uv /uvx /bin/
154154Or, with the installer:
155155
156156``` dockerfile
157- ADD https://astral.sh/uv/0.8.14 /install.sh /uv-installer.sh
157+ ADD https://astral.sh/uv/0.8.15 /install.sh /uv-installer.sh
158158```
159159
160160### Installing a project
@@ -367,6 +367,16 @@ not being able to use hard links since the cache and sync target are on separate
367367If you're not mounting the cache, image size can be reduced by using the `--no-cache` flag or
368368setting `UV_NO_CACHE`.
369369
370+ By default, managed Python installations are not cached before being installed. Setting
371+ `UV_PYTHON_CACHE_DIR` can be used in combination with a cache mount :
372+
373+ ` ` ` dockerfile title="Dockerfile"
374+ ENV UV_PYTHON_CACHE_DIR=/root/.cache/uv/python
375+
376+ RUN --mount=type=cache,target=/root/.cache/uv \
377+ uv python install
378+ ` ` `
379+
370380!!! note
371381
372382 The cache directory's location can be determined by running the `uv cache dir` command in the
@@ -580,5 +590,5 @@ Verified OK
580590!!! tip
581591
582592 These examples use `latest`, but best practice is to verify the attestation for a specific
583- version tag, e.g., `ghcr.io/astral-sh/uv:0.8.14 `, or (even better) the specific image digest,
593+ version tag, e.g., `ghcr.io/astral-sh/uv:0.8.15 `, or (even better) the specific image digest,
584594 such as `ghcr.io/astral-sh/uv:0.5.27@sha256:5adf09a5a526f380237408032a9308000d14d5947eafa687ad6c6a2476787b4f`.
0 commit comments