Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 680dcc3

Browse files
authored
Improve consistency of directory lookup instructions in Docker (#6665)
1 parent 3949e5d commit 680dcc3

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

docs/guides/integration/docker.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,16 @@ $ docker run -it $(docker build -q .) /bin/bash -c "cowsay -t hello"
116116
|| ||
117117
```
118118

119-
To determine the tool bin directory, run `uv tool dir --bin` in the container.
119+
!!! note
120+
121+
The tool bin directory's location can be determined by running the `uv tool dir --bin` command
122+
in the container.
123+
124+
Alternatively, it can be set to a constant location:
125+
126+
```dockerfile title="Dockerfile"
127+
ENV UV_TOOL_BIN_DIR=/opt/uv-bin/
128+
```
120129

121130
## Optimizations
122131

@@ -153,7 +162,8 @@ setting `UV_NO_CACHE`.
153162

154163
!!! note
155164

156-
The cache directory's location can be determined with the `uv cache dir` command.
165+
The cache directory's location can be determined by running the `uv cache dir` command in the
166+
container.
157167

158168
Alternatively, the cache can be set to a constant location:
159169

0 commit comments

Comments
 (0)