F-G Fernandez
commited on
Commit
·
29a69a2
1
Parent(s):
feb604d
build(docker): speed up on CPU
Browse files- Dockerfile +1 -1
Dockerfile
CHANGED
|
@@ -12,7 +12,7 @@ COPY requirements.txt ./
|
|
| 12 |
RUN --mount=from=ghcr.io/astral-sh/uv:0.9.5,source=/uv,target=/bin/uv \
|
| 13 |
--mount=type=cache,target=/root/.cache/uv \
|
| 14 |
--mount=type=bind,source=requirements.txt,target=requirements.txt \
|
| 15 |
-
uv pip install --system -r requirements.txt
|
| 16 |
|
| 17 |
COPY src/ ./src/
|
| 18 |
|
|
|
|
| 12 |
RUN --mount=from=ghcr.io/astral-sh/uv:0.9.5,source=/uv,target=/bin/uv \
|
| 13 |
--mount=type=cache,target=/root/.cache/uv \
|
| 14 |
--mount=type=bind,source=requirements.txt,target=requirements.txt \
|
| 15 |
+
UV_TORCH_BACKEND='cpu' uv pip install --system -r requirements.txt
|
| 16 |
|
| 17 |
COPY src/ ./src/
|
| 18 |
|