Dockerfile 690 B

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