@@ -119,6 +119,8 @@ RUN --mount=type=cache,target=/root/.cache/uv \
119
119
# Reference: https://github.com/astral-sh/uv/pull/1694
120
120
ENV UV_HTTP_TIMEOUT=500
121
121
ENV UV_INDEX_STRATEGY="unsafe-best-match"
122
+ # Use copy mode to avoid hardlink failures with Docker cache mounts
123
+ ENV UV_LINK_MODE=copy
122
124
123
125
# Upgrade to GCC 10 to avoid https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92519
124
126
# as it was causing spam when compiling the CUTLASS kernels
@@ -181,6 +183,8 @@ COPY requirements/build.txt requirements/build.txt
181
183
# Reference: https://github.com/astral-sh/uv/pull/1694
182
184
ENV UV_HTTP_TIMEOUT=500
183
185
ENV UV_INDEX_STRATEGY="unsafe-best-match"
186
+ # Use copy mode to avoid hardlink failures with Docker cache mounts
187
+ ENV UV_LINK_MODE=copy
184
188
185
189
RUN --mount=type=cache,target=/root/.cache/uv \
186
190
uv pip install --system -r requirements/build.txt \
@@ -272,6 +276,8 @@ ARG PYTORCH_CUDA_INDEX_BASE_URL
272
276
# Reference: https://github.com/astral-sh/uv/pull/1694
273
277
ENV UV_HTTP_TIMEOUT=500
274
278
ENV UV_INDEX_STRATEGY="unsafe-best-match"
279
+ # Use copy mode to avoid hardlink failures with Docker cache mounts
280
+ ENV UV_LINK_MODE=copy
275
281
276
282
COPY requirements/lint.txt requirements/lint.txt
277
283
COPY requirements/test.txt requirements/test.txt
@@ -341,6 +347,8 @@ RUN --mount=type=cache,target=/root/.cache/uv \
341
347
# Reference: https://github.com/astral-sh/uv/pull/1694
342
348
ENV UV_HTTP_TIMEOUT=500
343
349
ENV UV_INDEX_STRATEGY="unsafe-best-match"
350
+ # Use copy mode to avoid hardlink failures with Docker cache mounts
351
+ ENV UV_LINK_MODE=copy
344
352
345
353
# Workaround for https://github.com/openai/triton/issues/2507 and
346
354
# https://github.com/pytorch/pytorch/issues/107960 -- hopefully
@@ -472,6 +480,8 @@ ARG PIP_EXTRA_INDEX_URL UV_EXTRA_INDEX_URL
472
480
# Reference: https://github.com/astral-sh/uv/pull/1694
473
481
ENV UV_HTTP_TIMEOUT=500
474
482
ENV UV_INDEX_STRATEGY="unsafe-best-match"
483
+ # Use copy mode to avoid hardlink failures with Docker cache mounts
484
+ ENV UV_LINK_MODE=copy
475
485
476
486
# install development dependencies (for testing)
477
487
RUN --mount=type=cache,target=/root/.cache/uv \
0 commit comments