@@ -31,6 +31,10 @@ RUN echo 'tzdata tzdata/Areas select America' | debconf-set-selections \
31
31
RUN --mount=type=cache,target=/root/.cache/uv \
32
32
python3 -m pip install uv
33
33
34
+ # This timeout (in seconds) is necessary when installing some dependencies via uv since it's likely to time out
35
+ # Reference: https://github.com/astral-sh/uv/pull/1694
36
+ ENV UV_HTTP_TIMEOUT=500
37
+
34
38
# Upgrade to GCC 10 to avoid https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92519
35
39
# as it was causing spam when compiling the CUTLASS kernels
36
40
RUN apt-get install -y gcc-10 g++-10
@@ -81,6 +85,10 @@ ARG TARGETPLATFORM
81
85
# install build dependencies
82
86
COPY requirements-build.txt requirements-build.txt
83
87
88
+ # This timeout (in seconds) is necessary when installing some dependencies via uv since it's likely to time out
89
+ # Reference: https://github.com/astral-sh/uv/pull/1694
90
+ ENV UV_HTTP_TIMEOUT=500
91
+
84
92
RUN --mount=type=cache,target=/root/.cache/uv \
85
93
uv pip install --system -r requirements-build.txt
86
94
@@ -143,6 +151,10 @@ RUN if [ "$RUN_WHEEL_CHECK" = "true" ]; then \
143
151
# ################### DEV IMAGE ####################
144
152
FROM base as dev
145
153
154
+ # This timeout (in seconds) is necessary when installing some dependencies via uv since it's likely to time out
155
+ # Reference: https://github.com/astral-sh/uv/pull/1694
156
+ ENV UV_HTTP_TIMEOUT=500
157
+
146
158
COPY requirements-lint.txt requirements-lint.txt
147
159
COPY requirements-test.txt requirements-test.txt
148
160
COPY requirements-dev.txt requirements-dev.txt
@@ -181,6 +193,10 @@ RUN echo 'tzdata tzdata/Areas select America' | debconf-set-selections \
181
193
RUN --mount=type=cache,target=/root/.cache/uv \
182
194
python3 -m pip install uv
183
195
196
+ # This timeout (in seconds) is necessary when installing some dependencies via uv since it's likely to time out
197
+ # Reference: https://github.com/astral-sh/uv/pull/1694
198
+ ENV UV_HTTP_TIMEOUT=500
199
+
184
200
# Workaround for https://github.com/openai/triton/issues/2507 and
185
201
# https://github.com/pytorch/pytorch/issues/107960 -- hopefully
186
202
# this won't be needed for future versions of this docker image
@@ -237,6 +253,10 @@ FROM vllm-base AS test
237
253
238
254
ADD . /vllm-workspace/
239
255
256
+ # This timeout (in seconds) is necessary when installing some dependencies via uv since it's likely to time out
257
+ # Reference: https://github.com/astral-sh/uv/pull/1694
258
+ ENV UV_HTTP_TIMEOUT=500
259
+
240
260
# install development dependencies (for testing)
241
261
RUN --mount=type=cache,target=/root/.cache/uv \
242
262
uv pip install --system -r requirements-dev.txt
@@ -265,6 +285,10 @@ RUN mv vllm test_docs/
265
285
# base openai image with additional requirements, for any subsequent openai-style images
266
286
FROM vllm-base AS vllm-openai-base
267
287
288
+ # This timeout (in seconds) is necessary when installing some dependencies via uv since it's likely to time out
289
+ # Reference: https://github.com/astral-sh/uv/pull/1694
290
+ ENV UV_HTTP_TIMEOUT=500
291
+
268
292
# install additional dependencies for openai api server
269
293
RUN --mount=type=cache,target=/root/.cache/uv \
270
294
if [ "$TARGETPLATFORM" = "linux/arm64" ]; then \
0 commit comments