Skip to content

Commit

Permalink
Improve consistency of directory lookup instructions in Docker
Browse files Browse the repository at this point in the history
  • Loading branch information
zanieb committed Aug 27, 2024
1 parent 3949e5d commit 91e0720
Showing 1 changed file with 12 additions and 2 deletions.
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

0 comments on commit 91e0720

Please sign in to comment.