Skip to content

Commit e07482c

Browse files
remove vllm repo in runtime container
1 parent 90b983f commit e07482c

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

container/Dockerfile.vllm

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ RUN --mount=type=bind,source=./container/deps/,target=/tmp/deps \
176176
--mount=type=cache,target=/root/.cache/uv \
177177
cp /tmp/deps/vllm/install_vllm.sh /tmp/install_vllm.sh && \
178178
chmod +x /tmp/install_vllm.sh && \
179-
/tmp/install_vllm.sh --editable --vllm-ref $VLLM_REF --max-jobs $MAX_JOBS --arch $ARCH
179+
/tmp/install_vllm.sh --editable --vllm-ref $VLLM_REF --max-jobs $MAX_JOBS --arch $ARCH --installation-dir /opt/vllm
180180

181181
# Common dependencies
182182
RUN --mount=type=bind,source=./container/deps/requirements.txt,target=/tmp/requirements.txt \
@@ -467,7 +467,8 @@ RUN --mount=type=bind,source=./container/deps/,target=/tmp/deps \
467467
--mount=type=cache,target=/root/.cache/uv \
468468
cp /tmp/deps/vllm/install_vllm.sh /tmp/install_vllm.sh && \
469469
chmod +x /tmp/install_vllm.sh && \
470-
/tmp/install_vllm.sh --no-editable --vllm-ref $VLLM_REF --max-jobs $MAX_JOBS
470+
/tmp/install_vllm.sh --no-editable --vllm-ref $VLLM_REF --max-jobs $MAX_JOBS --installation-dir /tmp/vllm && \
471+
rm -rf /tmp/vllm
471472

472473
# Common dependencies - these may already be installed in the copied venv, but run anyway for safety
473474
RUN --mount=type=bind,source=./container/deps/requirements.txt,target=/tmp/requirements.txt \

container/deps/vllm/install_vllm.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ set -ex
2222
EDITABLE=true
2323
VLLM_REF="059d4cd"
2424
MAX_JOBS=16
25+
INSTALLATION_DIR=/tmp/vllm
2526
ARCH=$(uname -m)
2627

2728
# Convert x86_64 to amd64 for consistency with Docker ARG
@@ -53,6 +54,10 @@ while [[ $# -gt 0 ]]; do
5354
ARCH="$2"
5455
shift 2
5556
;;
57+
--installation-dir)
58+
INSTALLATION_DIR="$2"
59+
shift 2
60+
;;
5661
-h|--help)
5762
echo "Usage: $0 [--editable|--no-editable] [--vllm-ref REF] [--max-jobs NUM] [--arch ARCH]"
5863
echo "Options:"
@@ -61,6 +66,7 @@ while [[ $# -gt 0 ]]; do
6166
echo " --vllm-ref REF Git reference to checkout (default: 059d4cd)"
6267
echo " --max-jobs NUM Maximum number of parallel jobs (default: 16)"
6368
echo " --arch ARCH Architecture (amd64|arm64, default: auto-detect)"
69+
echo " --installation-dir DIR Directory to install vllm (default: /tmp/vllm)"
6470
exit 0
6571
;;
6672
*)
@@ -83,8 +89,8 @@ echo " ARCH: $ARCH"
8389
uv pip install pip cuda-python
8490

8591
# Create vllm directory and clone
86-
mkdir -p /opt/vllm
87-
cd /opt/vllm
92+
mkdir -p $INSTALLATION_DIR
93+
cd $INSTALLATION_DIR
8894
git clone https://github.com/vllm-project/vllm.git
8995
cd vllm
9096
git checkout $VLLM_REF

0 commit comments

Comments
 (0)