Dockerfile.openvino 975 Bytes
Newer Older
1
2
3
# The vLLM Dockerfile is used to construct vLLM image that can be directly used
# to run the OpenAI compatible server.

4
FROM ubuntu:22.04 AS dev
5
6

RUN apt-get update -y && \
7
8
9
    apt-get install -y \
        git python3-pip \
        ffmpeg libsm6 libxext6 libgl1
10
11
WORKDIR /workspace

12
COPY . .
13
14
15
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
16

17
RUN python3 -m pip install -U pip
18
# install build requirements
19
RUN PIP_EXTRA_INDEX_URL="https://download.pytorch.org/whl/cpu" python3 -m pip install -r /workspace/requirements/build.txt
20
# build vLLM with OpenVINO backend
21
RUN PIP_EXTRA_INDEX_URL="https://download.pytorch.org/whl/cpu" VLLM_TARGET_DEVICE="openvino" python3 -m pip install /workspace
22

23
24
COPY examples/ /workspace/examples
COPY benchmarks/ /workspace/benchmarks
25

youkaichao's avatar
youkaichao committed
26
27
28
# install development dependencies (for testing)
RUN python3 -m pip install -e tests/vllm_test_utils

29
CMD ["/bin/bash"]