Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve consistency of directory lookup instructions in Docker #6665

Merged
merged 1 commit into from
Aug 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions docs/guides/integration/docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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:

Expand Down
Loading