Dockerfile 1.1 KB

12345678910111213141516171819202122232425
  1. # Use DaoCloud mirrored vllm image for China region for gpu with Volta、Turing、Ampere、Ada Lovelace、Hopper、Blackwell architecture (7.0 <= Compute Capability <= 12.0)
  2. # Compute Capability version query (https://developer.nvidia.com/cuda-gpus)
  3. # support x86_64 architecture and ARM(AArch64) architecture
  4. FROM docker.m.daocloud.io/vllm/vllm-openai:v0.11.2
  5. # Install libgl for opencv support & Noto fonts for Chinese characters
  6. RUN apt-get update && \
  7. apt-get install -y \
  8. fonts-noto-core \
  9. fonts-noto-cjk \
  10. fontconfig \
  11. libgl1 && \
  12. fc-cache -fv && \
  13. apt-get clean && \
  14. rm -rf /var/lib/apt/lists/*
  15. # Install mineru latest
  16. RUN python3 -m pip install -U 'mineru[core]>=3.0.0' -i https://mirrors.aliyun.com/pypi/simple --break-system-packages && \
  17. python3 -m pip cache purge
  18. # Download models and update the configuration file
  19. RUN /bin/bash -c "mineru-models-download -s modelscope -m all"
  20. # Set the entry point to activate the virtual environment and run the command line tool
  21. ENTRYPOINT ["/bin/bash", "-c", "export MINERU_MODEL_SOURCE=local && exec \"$@\"", "--"]