2026-05-15 21:20:13 +08:00
# https://gcore.jsdelivr.net/gh/opendatalab/MinerU@master/docker/china/Dockerfile
# Use DaoCloud mirrored vllm image for China region for gpu with Volta、Turing、Ampere、Ada Lovelace、Hopper、Blackwell architecture (7.0 <= Compute Capability <= 12.0)
2025-10-24 01:09:24 +08:00
# Compute Capability version query (https://developer.nvidia.com/cuda-gpus)
2026-05-15 21:20:13 +08:00
# support x86_64 architecture and ARM(AArch64) architecture
FROM docker.m.daocloud.io/vllm/vllm-openai:v0.11.2
2025-06-17 10:54:45 +08:00
2025-07-27 12:04:44 +08:00
# 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
2026-05-15 21:20:13 +08:00
RUN python3 -m pip install -U 'mineru[core]>=3.0.0' -i https://mirrors.aliyun.com/pypi/simple --break-system-packages && \
2025-07-27 12:04:44 +08:00
python3 -m pip cache purge
2025-06-17 10:54:45 +08:00
# 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 \"$@\"" , "--" ]