Dockerfile 924 B

1234567891011121314151617181920212223242526
  1. # Use DaoCloud mirrored vllm image for China region
  2. FROM docker.m.daocloud.io/vllm/vllm-openai:v0.10.1.1
  3. # Use the official vllm image
  4. # FROM vllm/vllm-openai:v0.10.1.1
  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]' -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 \"$@\"", "--"]