Dockerfile 926 B

12345678910111213141516171819202122232425
  1. # Use the official sglang image
  2. FROM lmsysorg/sglang:v0.4.9.post4-cu126
  3. # For blackwell GPU, use the following line instead:
  4. # FROM lmsysorg/sglang:v0.4.9.post4-cu128-b200
  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 \"$@\"", "--"]