Dockerfile 591 B

1234567891011121314
  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 && apt-get install -y libgl1 && apt-get clean && rm -rf /var/lib/apt/lists/*
  5. # Install mineru latest
  6. RUN python3 -m pip install -U 'mineru[core]' --break-system-packages
  7. # Download models and update the configuration file
  8. RUN /bin/bash -c "mineru-models-download -s huggingface -m all"
  9. # Set the entry point to activate the virtual environment and run the command line tool
  10. ENTRYPOINT ["/bin/bash", "-c", "export MINERU_MODEL_SOURCE=local && exec \"$@\"", "--"]