Dockerfile 544 B

12345678910111213141516171819
  1. FROM egs-registry.cn-hangzhou.cr.aliyuncs.com/egs/vllm:0.8.2-pytorch2.6-cu124-20250328
  2. WORKDIR /app
  3. ENV PYTHONDONTWRITEBYTECODE=1
  4. ENV PYTHONUNBUFFERED=1
  5. ENV PIP_DISABLE_PIP_VERSION_CHECK=on
  6. ENV TZ=Asia/Shanghai
  7. RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone \
  8. COPY requirements.txt .
  9. RUN pip install --no-cache-dir -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple
  10. COPY . .
  11. EXPOSE 8000
  12. CMD ["python3", "-m", "vllm.entrypoints.openai.api_server", "--model", "/app/model", "--dtype", "float16"]