Skip to content
Discussion options

You must be logged in to vote

Hi @franplk! I'm Dosu and I’m helping the MinerU team.

MinerU 目前不提供预构建的官方 Docker 镜像,需要用户自行通过 Dockerfile 构建。针对国内网络环境,以下是可用的镜像加速方案:

Docker 镜像加速(拉取基础镜像)
使用 DaoCloud 镜像加速

docker pull docker.m.daocloud.io/lmsysorg/sglang:v0.4.9.post3-cu126

国内 Dockerfile 下载及构建
MinerU 提供专门的 中国区 Dockerfile(使用阿里云 PyPI 源):

# 下载 Dockerfile
wget https://gcore.jsdelivr.net/gh/opendatalab/MinerU@master/docker/china/Dockerfile

# 构建镜像
docker build -t mineru:latest -f Dockerfile .

# 启动容器
docker run --gpus all --shm-size 32g \
  -p 30000:30000 -p 7860:7860 -p 8000:8000 \
  --ipc=host -it mineru:latest /bin/bash

模型下载加速
设置环境变量使用 ModelScope 替代 HuggingFace

export MINERU_MODEL_SOURCE=modelscope

如果遇到依赖下载问题,可以在 Dockerfile 中显…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@franplk
Comment options

Answer selected by franplk
Comment options

You must be logged in to vote
1 reply
@franplk
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants