@@ -225,12 +225,12 @@ RUN --mount=type=cache,target=/root/.cache/ccache \
225225 fi
226226
227227# Check the size of the wheel if RUN_WHEEL_CHECK is true
228- COPY .buildkite/check-wheel-size.py check-wheel-size.py
229228# sync the default value with .buildkite/check-wheel-size.py
230229ARG VLLM_MAX_SIZE_MB=500
231230ENV VLLM_MAX_SIZE_MB=$VLLM_MAX_SIZE_MB
232231ARG RUN_WHEEL_CHECK=true
233- RUN if [ "$RUN_WHEEL_CHECK" = "true" ]; then \
232+ RUN --mount=type=bind,source=.buildkite/check-wheel-size.py,target=check-wheel-size.py \
233+ if [ "$RUN_WHEEL_CHECK" = "true" ]; then \
234234 python3 check-wheel-size.py dist; \
235235 else \
236236 echo "Skipping wheel size check." ; \
@@ -367,24 +367,23 @@ RUN --mount=type=cache,target=/root/.cache/uv \
367367
368368# Install DeepGEMM from source
369369ARG DEEPGEMM_GIT_REF
370- COPY tools/install_deepgemm.sh /tmp/install_deepgemm.sh
371- RUN --mount=type=cache,target=/root/.cache/uv \
370+ RUN --mount=type=bind,source= tools/install_deepgemm.sh,target= /tmp/install_deepgemm.sh \
371+ --mount=type=cache,target=/root/.cache/uv \
372372 VLLM_DOCKER_BUILD_CONTEXT=1 TORCH_CUDA_ARCH_LIST="9.0a 10.0a" /tmp/install_deepgemm.sh --cuda-version "${CUDA_VERSION}" ${DEEPGEMM_GIT_REF:+--ref "$DEEPGEMM_GIT_REF" }
373373
374- COPY tools/install_gdrcopy.sh install_gdrcopy.sh
375- RUN set -eux; \
374+ RUN --mount=type=bind,source= tools/install_gdrcopy.sh,target= install_gdrcopy.sh \
375+ set -eux; \
376376 case "${TARGETPLATFORM}" in \
377377 linux/arm64) UUARCH="aarch64" ;; \
378378 linux/amd64) UUARCH="x64" ;; \
379379 *) echo "Unsupported TARGETPLATFORM: ${TARGETPLATFORM}" >&2; exit 1 ;; \
380380 esac; \
381- ./install_gdrcopy.sh "${GDRCOPY_OS_VERSION}" "${GDRCOPY_CUDA_VERSION}" "${UUARCH}" ; \
382- rm ./install_gdrcopy.sh
381+ ./install_gdrcopy.sh "${GDRCOPY_OS_VERSION}" "${GDRCOPY_CUDA_VERSION}" "${UUARCH}" ;
383382
384383# Install EP kernels(pplx-kernels and DeepEP)
385- COPY tools/ep_kernels/install_python_libraries.sh install_python_libraries.sh
386384ENV CUDA_HOME=/usr/local/cuda
387- RUN export TORCH_CUDA_ARCH_LIST="${TORCH_CUDA_ARCH_LIST:-9.0a 10.0a+PTX}" \
385+ RUN --mount=type=bind,source=tools/ep_kernels/install_python_libraries.sh,target=install_python_libraries.sh \
386+ export TORCH_CUDA_ARCH_LIST="${TORCH_CUDA_ARCH_LIST:-9.0a 10.0a+PTX}" \
388387 && bash install_python_libraries.sh
389388
390389# CUDA image changed from /usr/local/nvidia to /usr/local/cuda in 12.8 but will
0 commit comments