2025-12-04 23:23:22 +08:00
|
|
|
ARG VLLM_BASE_IMAGE=vllm/vllm-openai
|
2026-03-09 17:29:38 +08:00
|
|
|
ARG VLLM_BASE_TAG=v0.17.0
|
2025-12-04 23:23:22 +08:00
|
|
|
FROM ${VLLM_BASE_IMAGE}:${VLLM_BASE_TAG}
|
|
|
|
|
ARG APP_DIR=/workspace/vllm-omni
|
|
|
|
|
WORKDIR ${APP_DIR}
|
|
|
|
|
COPY . .
|
2026-02-03 13:43:45 +08:00
|
|
|
|
2026-01-16 21:16:43 +08:00
|
|
|
# Install system dependencies
|
|
|
|
|
RUN apt-get update && \
|
2026-03-09 21:52:56 +08:00
|
|
|
apt-get install -y espeak-ng ffmpeg git sox libsox-fmt-all jq && \
|
2026-02-03 13:43:45 +08:00
|
|
|
apt-get clean && \
|
|
|
|
|
rm -rf /var/lib/apt/lists/*
|
2026-01-16 21:16:43 +08:00
|
|
|
|
2026-03-17 01:35:12 +00:00
|
|
|
RUN uv pip uninstall --system -y vllm || true
|
|
|
|
|
|
2026-03-16 10:01:18 +00:00
|
|
|
# Install vLLM from source at the selected commit using precompiled artifacts
|
2026-03-17 01:35:12 +00:00
|
|
|
ENV VLLM_PRECOMPILED_WHEEL_COMMIT=2754231ba3a72f41e62922d1552c33e8f3f6a9d1
|
2026-03-17 11:08:45 +08:00
|
|
|
RUN git clone https://github.com/vllm-project/vllm.git /workspace/vllm && \
|
|
|
|
|
cd /workspace/vllm && \
|
|
|
|
|
git checkout ${VLLM_PRECOMPILED_WHEEL_COMMIT} && \
|
|
|
|
|
(uv pip uninstall --system -y vllm || true) && \
|
|
|
|
|
VLLM_USE_PRECOMPILED=1 uv pip install --system -e . && \
|
|
|
|
|
cd ${APP_DIR} && \
|
|
|
|
|
uv pip install --system ".[dev]" && \
|
|
|
|
|
uv pip install --system --upgrade \
|
2026-03-16 19:31:03 +08:00
|
|
|
"flashinfer-cubin==0.6.6" \
|
2026-03-16 10:01:18 +00:00
|
|
|
"nvidia-cublas-cu12==12.9.1.4" \
|
|
|
|
|
"numpy==2.2.6"
|
2026-03-10 09:41:45 +00:00
|
|
|
|
|
|
|
|
RUN uv pip install --system --upgrade \
|
2026-03-16 19:31:03 +08:00
|
|
|
"flashinfer-jit-cache==0.6.6" \
|
2026-03-10 09:41:45 +00:00
|
|
|
--index-url https://flashinfer.ai/whl/cu129
|
|
|
|
|
RUN ln -sf /usr/bin/python3 /usr/bin/python
|
2026-03-10 08:05:28 +00:00
|
|
|
|
2025-12-04 23:23:22 +08:00
|
|
|
ENTRYPOINT []
|