Dockerfile 457 B

1234567891011
  1. # Use the official sglang image
  2. FROM lmsysorg/sglang:v0.4.7-cu124
  3. # install mineru latest
  4. RUN python3 -m pip install 'mineru[core]>=2.0.0' --break-system-packages
  5. # Download models and update the configuration file
  6. RUN /bin/bash -c "mineru-models-download -s huggingface -m all"
  7. # Set the entry point to activate the virtual environment and run the command line tool
  8. ENTRYPOINT ["/bin/bash", "-c", "export MINERU_MODEL_SOURCE=local && exec \"$@\"", "--"]