Dockerfile 775 B

1234567891011121314151617181920212223
  1. # Use the official vllm image
  2. FROM vllm/vllm-openai:v0.10.1.1
  3. # Install libgl for opencv support & Noto fonts for Chinese characters
  4. RUN apt-get update && \
  5. apt-get install -y \
  6. fonts-noto-core \
  7. fonts-noto-cjk \
  8. fontconfig \
  9. libgl1 && \
  10. fc-cache -fv && \
  11. apt-get clean && \
  12. rm -rf /var/lib/apt/lists/*
  13. # Install mineru latest
  14. RUN python3 -m pip install -U 'mineru[core]' --break-system-packages && \
  15. python3 -m pip cache purge
  16. # Download models and update the configuration file
  17. RUN /bin/bash -c "mineru-models-download -s huggingface -m all"
  18. # Set the entry point to activate the virtual environment and run the command line tool
  19. ENTRYPOINT ["/bin/bash", "-c", "export MINERU_MODEL_SOURCE=local && exec \"$@\"", "--"]