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
71eaf896
Unverified
Commit
71eaf896
authored
Mar 05, 2025
by
Yuan Tang
Committed by
GitHub
Mar 05, 2025
Browse files
[Build] Add UV_HTTP_TIMEOUT to avoid timeout during installation (#13850)
Signed-off-by:
Yuan Tang
<
terrytangyuan@gmail.com
>
parent
ca100c90
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
Dockerfile
Dockerfile
+24
-0
No files found.
Dockerfile
View file @
71eaf896
...
...
@@ -31,6 +31,10 @@ RUN echo 'tzdata tzdata/Areas select America' | debconf-set-selections \
RUN
--mount
=
type
=
cache,target
=
/root/.cache/uv
\
python3
-m
pip
install
uv
# This timeout (in seconds) is necessary when installing some dependencies via uv since it's likely to time out
# Reference: https://github.com/astral-sh/uv/pull/1694
ENV
UV_HTTP_TIMEOUT=500
# 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
RUN
apt-get
install
-y
gcc-10 g++-10
...
...
@@ -81,6 +85,10 @@ ARG TARGETPLATFORM
# install build dependencies
COPY
requirements-build.txt requirements-build.txt
# This timeout (in seconds) is necessary when installing some dependencies via uv since it's likely to time out
# Reference: https://github.com/astral-sh/uv/pull/1694
ENV
UV_HTTP_TIMEOUT=500
RUN
--mount
=
type
=
cache,target
=
/root/.cache/uv
\
uv pip
install
--system
-r
requirements-build.txt
...
...
@@ -143,6 +151,10 @@ RUN if [ "$RUN_WHEEL_CHECK" = "true" ]; then \
#################### DEV IMAGE ####################
FROM
base as dev
# This timeout (in seconds) is necessary when installing some dependencies via uv since it's likely to time out
# Reference: https://github.com/astral-sh/uv/pull/1694
ENV
UV_HTTP_TIMEOUT=500
COPY
requirements-lint.txt requirements-lint.txt
COPY
requirements-test.txt requirements-test.txt
COPY
requirements-dev.txt requirements-dev.txt
...
...
@@ -181,6 +193,10 @@ RUN echo 'tzdata tzdata/Areas select America' | debconf-set-selections \
RUN
--mount
=
type
=
cache,target
=
/root/.cache/uv
\
python3
-m
pip
install
uv
# This timeout (in seconds) is necessary when installing some dependencies via uv since it's likely to time out
# Reference: https://github.com/astral-sh/uv/pull/1694
ENV
UV_HTTP_TIMEOUT=500
# Workaround for https://github.com/openai/triton/issues/2507 and
# https://github.com/pytorch/pytorch/issues/107960 -- hopefully
# this won't be needed for future versions of this docker image
...
...
@@ -237,6 +253,10 @@ FROM vllm-base AS test
ADD
. /vllm-workspace/
# This timeout (in seconds) is necessary when installing some dependencies via uv since it's likely to time out
# Reference: https://github.com/astral-sh/uv/pull/1694
ENV
UV_HTTP_TIMEOUT=500
# install development dependencies (for testing)
RUN
--mount
=
type
=
cache,target
=
/root/.cache/uv
\
uv pip
install
--system
-r
requirements-dev.txt
...
...
@@ -265,6 +285,10 @@ RUN mv vllm test_docs/
# base openai image with additional requirements, for any subsequent openai-style images
FROM
vllm-base AS vllm-openai-base
# This timeout (in seconds) is necessary when installing some dependencies via uv since it's likely to time out
# Reference: https://github.com/astral-sh/uv/pull/1694
ENV
UV_HTTP_TIMEOUT=500
# install additional dependencies for openai api server
RUN
--mount
=
type
=
cache,target
=
/root/.cache/uv
\
if
[
"
$TARGETPLATFORM
"
=
"linux/arm64"
]
;
then
\
...
...
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