Dockerfile 1.1 KB

123456789101112131415161718192021222324252627282930
  1. # Use DaoCloud mirrored sglang image for China region
  2. FROM docker.m.daocloud.io/lmsysorg/sglang:v0.4.9.post6-cu126
  3. # For blackwell GPU, use the following line instead:
  4. # FROM docker.m.daocloud.io/lmsysorg/sglang:v0.4.9.post6-cu128-b200
  5. # Use the official sglang image
  6. # FROM lmsysorg/sglang:v0.4.9.post6-cu126
  7. # For blackwell GPU, use the following line instead:
  8. # FROM lmsysorg/sglang:v0.4.9.post6-cu128-b200
  9. # Install libgl for opencv support & Noto fonts for Chinese characters
  10. RUN apt-get update && \
  11. apt-get install -y \
  12. fonts-noto-core \
  13. fonts-noto-cjk \
  14. fontconfig \
  15. libgl1 && \
  16. fc-cache -fv && \
  17. apt-get clean && \
  18. rm -rf /var/lib/apt/lists/*
  19. # Install mineru latest
  20. RUN python3 -m pip install -U 'mineru[core]' -i https://mirrors.aliyun.com/pypi/simple --break-system-packages && \
  21. python3 -m pip cache purge
  22. # Download models and update the configuration file
  23. RUN /bin/bash -c "mineru-models-download -s modelscope -m all"
  24. # Set the entry point to activate the virtual environment and run the command line tool
  25. ENTRYPOINT ["/bin/bash", "-c", "export MINERU_MODEL_SOURCE=local && exec \"$@\"", "--"]