Dockerfile.bck1 1.3 KB

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