Dockerfile 494 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 -U 'mineru[core]' -i https://mirrors.aliyun.com/pypi/simple --break-system-packages
  5. # Download models and update the configuration file
  6. RUN /bin/bash -c "mineru-models-download -s modelscope -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 \"$@\"", "--"]