Improve consistency of directory lookup instructions in Docker (#6665)

This commit is contained in:
Zanie Blue 2024-08-26 20:39:25 -05:00 committed by GitHub
parent 3949e5d30e
commit 680dcc344c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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: