29 lines
1.1 KiB
Docker
29 lines
1.1 KiB
Docker
ARG VLLM_BASE_IMAGE=vllm/vllm-openai
|
|
ARG VLLM_BASE_TAG=v0.16.0
|
|
FROM ${VLLM_BASE_IMAGE}:${VLLM_BASE_TAG}
|
|
ARG APP_DIR=/workspace/vllm-omni
|
|
WORKDIR ${APP_DIR}
|
|
|
|
COPY . .
|
|
|
|
# Install system dependencies
|
|
RUN apt-get update && \
|
|
apt-get install -y ffmpeg git sox libsox-fmt-all jq && \
|
|
apt-get clean && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
# Install vLLM wheel for the specific commit
|
|
# URL format: https://wheels.vllm.ai/<commit_hash>/
|
|
# Current vLLM wheel commit: a60985b07eaf0fefa4c353ad2309b745707591ed
|
|
# Note: --prerelease=allow is required because nightly/commit wheels use
|
|
# pre-release version numbers (e.g. 2.10.0.dev...) which uv ignores by default,
|
|
# causing it to fall back to the older stable release from PyPI.
|
|
RUN uv pip install --system --upgrade --force-reinstall --prerelease=allow vllm --extra-index-url https://wheels.vllm.ai/a60985b07eaf0fefa4c353ad2309b745707591ed
|
|
|
|
RUN uv pip install --system --no-cache-dir ".[dev]"
|
|
RUN ln -sf /usr/bin/python3 /usr/bin/python
|
|
RUN FLASHINFER_VERSION=$(python -c "import flashinfer; print(flashinfer.__version__)") && \
|
|
uv pip install --system --upgrade "flashinfer-cubin==${FLASHINFER_VERSION}"
|
|
|
|
ENTRYPOINT []
|