Skip to content

Transforms complex documents like PDFs and Office docs into LLM-ready markdown/JSON for your Agentic workflows.

feat: add Dockerfile for Musa environment with MinerU and dependencies

myhloli75e018573da1
diff --git a/docker/china/musa.Dockerfile b/docker/china/musa.Dockerfile
new file mode 100644
index 00000000..79b2900b
--- /dev/null
+++ b/docker/china/musa.Dockerfile
@@ -0,0 +1,35 @@
+# Base image containing the vLLM inference environment, requiring amd64(x86-64) CPU + MooreThreads GPU.
+FROM registry.mthreads.com/mcconline/vllm-musa-qy2-py310:v0.9.2-rc2
+
+
+# Install libgl for opencv support & Noto fonts for Chinese characters
+RUN apt-get update && \
+ apt-get install -y \
+ fonts-noto-core \
+ fonts-noto-cjk \
+ fontconfig \
+ libgl1 && \
+ fc-cache -fv && \
+ apt-get clean && \
+ rm -rf /var/lib/apt/lists/*
+
+# Install mineru latest
+RUN python3 -m pip install -U pip -i https://mirrors.aliyun.com/pypi/simple && \
+ python3 -m pip install mineru[api,gradio] \
+ "matplotlib>=3.10,<4" \
+ "ultralytics>=8.3.48,<9" \
+ "doclayout_yolo==0.0.4" \
+ "ftfy>=6.3.1,<7" \
+ "shapely>=2.0.7,<3" \
+ "pyclipper>=1.3.0,<2" \
+ "omegaconf>=2.3.0,<3" \
+ numpy==1.26.1 \
+ opencv-python==4.11.0.86 \
+ -i https://mirrors.aliyun.com/pypi/simple && \
+ python3 -m pip cache purge
+
+# Download models and update the configuration file
+RUN /bin/bash -c "mineru-models-download -s modelscope -m all"
+
+# Set the entry point to activate the virtual environment and run the command line tool
+ENTRYPOINT ["/bin/bash", "-c", "export MINERU_MODEL_SOURCE=local && exec \"$@\"", "--"]
\ No newline at end of file