mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-31 15:57:26 +00:00
Add uv sync --no-install-workspace
to skip installation of all workspace members (#6539)
Extends #6538 See #4028 Another version of https://github.com/astral-sh/uv/pull/6398
This commit is contained in:
parent
4e82db093a
commit
ca50243174
10 changed files with 117 additions and 1 deletions
|
@ -191,7 +191,7 @@ If not mounting the cache, image size can be reduced with `--no-cache` flag.
|
|||
### Intermediate layers
|
||||
|
||||
If you're using uv to manage your project, you can improve build times by moving your transitive
|
||||
dependency installation into its own layer via `uv sync --no-install-project`.
|
||||
dependency installation into its own layer via the `--no-install` options.
|
||||
|
||||
`uv sync --no-install-project` will install the dependencies of the project but not the project
|
||||
itself. Since the project changes frequently, but its dependencies are generally static, this can be
|
||||
|
@ -216,3 +216,8 @@ WORKDIR /app
|
|||
# Sync the project
|
||||
RUN uv sync --frozen
|
||||
```
|
||||
|
||||
!!! tip
|
||||
|
||||
If you're using a [workspace](../../concepts/workspaces.md), then consider the
|
||||
`--no-install-workspace` flag which excludes the project _and_ any workspace members.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue