Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
c494f96f
Unverified
Commit
c494f96f
authored
Aug 05, 2025
by
Michael Goin
Committed by
GitHub
Aug 05, 2025
Browse files
Use UV_LINK_MODE=copy in Dockerfile to avoid hardlink fail (#22128)
Signed-off-by:
mgoin
<
mgoin64@gmail.com
>
parent
0c275ad5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
docker/Dockerfile
docker/Dockerfile
+10
-0
No files found.
docker/Dockerfile
View file @
c494f96f
...
@@ -119,6 +119,8 @@ RUN --mount=type=cache,target=/root/.cache/uv \
...
@@ -119,6 +119,8 @@ RUN --mount=type=cache,target=/root/.cache/uv \
# Reference: https://github.com/astral-sh/uv/pull/1694
# Reference: https://github.com/astral-sh/uv/pull/1694
ENV
UV_HTTP_TIMEOUT=500
ENV
UV_HTTP_TIMEOUT=500
ENV
UV_INDEX_STRATEGY="unsafe-best-match"
ENV
UV_INDEX_STRATEGY="unsafe-best-match"
# Use copy mode to avoid hardlink failures with Docker cache mounts
ENV
UV_LINK_MODE=copy
# Upgrade to GCC 10 to avoid https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92519
# Upgrade to GCC 10 to avoid https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92519
# as it was causing spam when compiling the CUTLASS kernels
# as it was causing spam when compiling the CUTLASS kernels
...
@@ -181,6 +183,8 @@ COPY requirements/build.txt requirements/build.txt
...
@@ -181,6 +183,8 @@ COPY requirements/build.txt requirements/build.txt
# Reference: https://github.com/astral-sh/uv/pull/1694
# Reference: https://github.com/astral-sh/uv/pull/1694
ENV
UV_HTTP_TIMEOUT=500
ENV
UV_HTTP_TIMEOUT=500
ENV
UV_INDEX_STRATEGY="unsafe-best-match"
ENV
UV_INDEX_STRATEGY="unsafe-best-match"
# Use copy mode to avoid hardlink failures with Docker cache mounts
ENV
UV_LINK_MODE=copy
RUN
--mount
=
type
=
cache,target
=
/root/.cache/uv
\
RUN
--mount
=
type
=
cache,target
=
/root/.cache/uv
\
uv pip
install
--system
-r
requirements/build.txt
\
uv pip
install
--system
-r
requirements/build.txt
\
...
@@ -272,6 +276,8 @@ ARG PYTORCH_CUDA_INDEX_BASE_URL
...
@@ -272,6 +276,8 @@ ARG PYTORCH_CUDA_INDEX_BASE_URL
# Reference: https://github.com/astral-sh/uv/pull/1694
# Reference: https://github.com/astral-sh/uv/pull/1694
ENV
UV_HTTP_TIMEOUT=500
ENV
UV_HTTP_TIMEOUT=500
ENV
UV_INDEX_STRATEGY="unsafe-best-match"
ENV
UV_INDEX_STRATEGY="unsafe-best-match"
# Use copy mode to avoid hardlink failures with Docker cache mounts
ENV
UV_LINK_MODE=copy
COPY
requirements/lint.txt requirements/lint.txt
COPY
requirements/lint.txt requirements/lint.txt
COPY
requirements/test.txt requirements/test.txt
COPY
requirements/test.txt requirements/test.txt
...
@@ -341,6 +347,8 @@ RUN --mount=type=cache,target=/root/.cache/uv \
...
@@ -341,6 +347,8 @@ RUN --mount=type=cache,target=/root/.cache/uv \
# Reference: https://github.com/astral-sh/uv/pull/1694
# Reference: https://github.com/astral-sh/uv/pull/1694
ENV
UV_HTTP_TIMEOUT=500
ENV
UV_HTTP_TIMEOUT=500
ENV
UV_INDEX_STRATEGY="unsafe-best-match"
ENV
UV_INDEX_STRATEGY="unsafe-best-match"
# Use copy mode to avoid hardlink failures with Docker cache mounts
ENV
UV_LINK_MODE=copy
# Workaround for https://github.com/openai/triton/issues/2507 and
# Workaround for https://github.com/openai/triton/issues/2507 and
# https://github.com/pytorch/pytorch/issues/107960 -- hopefully
# https://github.com/pytorch/pytorch/issues/107960 -- hopefully
...
@@ -472,6 +480,8 @@ ARG PIP_EXTRA_INDEX_URL UV_EXTRA_INDEX_URL
...
@@ -472,6 +480,8 @@ ARG PIP_EXTRA_INDEX_URL UV_EXTRA_INDEX_URL
# Reference: https://github.com/astral-sh/uv/pull/1694
# Reference: https://github.com/astral-sh/uv/pull/1694
ENV
UV_HTTP_TIMEOUT=500
ENV
UV_HTTP_TIMEOUT=500
ENV
UV_INDEX_STRATEGY="unsafe-best-match"
ENV
UV_INDEX_STRATEGY="unsafe-best-match"
# Use copy mode to avoid hardlink failures with Docker cache mounts
ENV
UV_LINK_MODE=copy
# install development dependencies (for testing)
# install development dependencies (for testing)
RUN
--mount
=
type
=
cache,target
=
/root/.cache/uv
\
RUN
--mount
=
type
=
cache,target
=
/root/.cache/uv
\
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment