Skip to content

Commit f121e07

Browse files
author
Ylang Tsou
committed
test
Signed-off-by: Ylang Tsou <ylangt@google.com>
1 parent e736e9a commit f121e07

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

docker/Dockerfile.pypi

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,19 @@ RUN export TPU_INFERENCE_VERSION=$(pip index versions tpu-inference --pre 2>/dev
1919
echo "Installing tpu-inference version: $TPU_INFERENCE_VERSION"
2020

2121
# Clone vLLM
22-
WORKDIR /workspace/vllm
22+
WORKDIR /workspace/vllm_build
2323
ARG VLLM_REPO=https://github.com/vllm-project/vllm.git
24-
RUN git clone $VLLM_REPO /workspace/vllm
24+
RUN git clone $VLLM_REPO /workspace/vllm_build
2525
RUN pip install build
2626
RUN export TPU_INFERENCE_VERSION=$(cat /tmp/tpu_inference_version) && \
27-
echo "Using tpu-inference version: $TPU_INFERENCE_VERSION" && \
27+
echo "Using tpu-inference version: ${TPU_INFERENCE_VERSION}" && \
2828
sed -i "s/^tpu-inference==.*/tpu-inference==${TPU_INFERENCE_VERSION}/" requirements/tpu.txt && \
2929
echo "Starting build.sh" && \
3030
bash tools/vllm-tpu/build.sh ${TPU_INFERENCE_VERSION}
3131

3232
# Install vllm-tpu from wheel
3333
RUN echo "pip installing vllm-tpu" && \
34-
pip install dist/*.whl
34+
pip install --no-cache-dir dist/*.whl
3535
# RUN export TPU_INFERENCE_VERSION=$(cat /tmp/tpu_inference_version) && \
3636
# export PIP_VERSION=$(echo "$TPU_INFERENCE_VERSION" | sed 's/^v//') && \
3737
# echo "Installing vllm-tpu version: $PIP_VERSION" && \
@@ -46,4 +46,8 @@ RUN python3 -m pip install --no-cache-dir \
4646
pytest-cov \
4747
tblib
4848

49+
# Preventing shadowing
50+
# WORKDIR /workspace
51+
# RUN mv /workspace/vllm /workspace/vllm_backup
52+
4953
CMD ["/bin/bash"]

0 commit comments

Comments
 (0)