Dockerfile 1.3 KB

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