From 91e0720c3e594912ba6663ef234953f8aa39d86b Mon Sep 17 00:00:00 2001 From: Zanie Blue Date: Mon, 26 Aug 2024 20:17:11 -0500 Subject: [PATCH] Improve consistency of directory lookup instructions in Docker --- docs/guides/integration/docker.md | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/docs/guides/integration/docker.md b/docs/guides/integration/docker.md index e2ce2e399710..fa2885aa893b 100644 --- a/docs/guides/integration/docker.md +++ b/docs/guides/integration/docker.md @@ -116,7 +116,16 @@ $ docker run -it $(docker build -q .) /bin/bash -c "cowsay -t hello" || || ``` -To determine the tool bin directory, run `uv tool dir --bin` in the container. +!!! note + + The tool bin directory's location can be determined by running the `uv tool dir --bin` command + in the container. + + Alternatively, it can be set to a constant location: + + ```dockerfile title="Dockerfile" + ENV UV_TOOL_BIN_DIR=/opt/uv-bin/ + ``` ## Optimizations @@ -153,7 +162,8 @@ setting `UV_NO_CACHE`. !!! note - The cache directory's location can be determined with the `uv cache dir` command. + The cache directory's location can be determined by running the `uv cache dir` command in the + container. Alternatively, the cache can be set to a constant location: