Skip to content

Commit f821294

Browse files
committed
Change the example with pyproject.yaml
1 parent 10a2850 commit f821294

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

uv/README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@ WORKDIR /<your workspace>
2424
# (Note: This creates a symlink to the base image's venv, thus only one project per torch version is recommended)
2525
RUN uv_init_torch2.5.1
2626

27-
# 2. Install additional packages (e.g., diffusers)
28-
RUN uv pip install -r requirements.txt
27+
# 2. Install additional packages (without torch)
28+
COPY pyproject.yaml /<your workspace>
29+
RUN uv pip install . --no-cache --no-install torch --no-install torchvision --no-install torchaudio
30+
2931
```
3032

3133
### 2. Running Commands Inside the container

0 commit comments

Comments
 (0)