2024-06-28 17:50:16 +04:00
|
|
|
# The vLLM Dockerfile is used to construct vLLM image that can be directly used
|
|
|
|
# to run the OpenAI compatible server.
|
|
|
|
|
2024-07-30 22:33:01 +04:00
|
|
|
FROM ubuntu:22.04 AS dev
|
2024-06-28 17:50:16 +04:00
|
|
|
|
|
|
|
RUN apt-get update -y && \
|
2024-09-23 18:44:26 +02:00
|
|
|
apt-get install -y \
|
|
|
|
git python3-pip \
|
|
|
|
ffmpeg libsm6 libxext6 libgl1
|
2024-06-28 17:50:16 +04:00
|
|
|
WORKDIR /workspace
|
|
|
|
|
2024-10-14 20:34:47 +02:00
|
|
|
COPY . .
|
2024-10-17 19:25:06 +02:00
|
|
|
ARG GIT_REPO_CHECK=0
|
|
|
|
RUN --mount=type=bind,source=.git,target=.git \
|
|
|
|
if [ "$GIT_REPO_CHECK" != 0 ]; then bash tools/check_repo.sh ; fi
|
2024-06-28 17:50:16 +04:00
|
|
|
|
|
|
|
# install build requirements
|
|
|
|
RUN PIP_EXTRA_INDEX_URL="https://download.pytorch.org/whl/cpu" python3 -m pip install -r /workspace/vllm/requirements-build.txt
|
|
|
|
# build vLLM with OpenVINO backend
|
2024-08-07 20:49:10 +04:00
|
|
|
RUN PIP_EXTRA_INDEX_URL="https://download.pytorch.org/whl/cpu" VLLM_TARGET_DEVICE="openvino" python3 -m pip install /workspace/vllm/
|
2024-06-28 17:50:16 +04:00
|
|
|
|
|
|
|
COPY examples/ /workspace/vllm/examples
|
|
|
|
COPY benchmarks/ /workspace/vllm/benchmarks
|
|
|
|
|
|
|
|
CMD ["/bin/bash"]
|