mirror of
https://github.com/opendatalab/MinerU.git
synced 2026-09-24 23:10:23 +08:00
feat: update Docker run command in Enflame.md and modify gcu.Dockerfile for improved package sources
This commit is contained in:
@@ -1,16 +1,20 @@
|
||||
# Base image containing the vLLM inference environment, requiring amd64(x86-64) CPU + Enflame GCU.
|
||||
FROM
|
||||
FROM crpi-vofi3w62lkohhxsp.cn-shanghai.personal.cr.aliyuncs.com/opendatalab-mineru/gcu:docker_images_topsrider_i3x_3.6.20260106_vllm0.11_pytorch2.8.0
|
||||
|
||||
|
||||
# Install libgl for opencv support & Noto fonts for Chinese characters
|
||||
RUN apt-get update && \
|
||||
apt-get install -y \
|
||||
RUN echo 'deb http://mirrors.aliyun.com/ubuntu/ noble main restricted universe multiverse\n\
|
||||
deb http://mirrors.aliyun.com/ubuntu/ noble-updates main restricted universe multiverse\n\
|
||||
deb http://mirrors.aliyun.com/ubuntu/ noble-backports main restricted universe multiverse\n\
|
||||
deb http://mirrors.aliyun.com/ubuntu/ noble-security main restricted universe multiverse' > /tmp/aliyun-sources.list && \
|
||||
apt-get -o Dir::Etc::SourceList=/tmp/aliyun-sources.list update && \
|
||||
apt-get -o Dir::Etc::SourceList=/tmp/aliyun-sources.list install -y \
|
||||
fonts-noto-core \
|
||||
fonts-noto-cjk \
|
||||
fontconfig && \
|
||||
fc-cache -fv && \
|
||||
apt-get clean && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
rm -rf /var/lib/apt/lists/* /tmp/aliyun-sources.list
|
||||
|
||||
# Install mineru latest
|
||||
RUN python3 -m pip install -U pip -i https://mirrors.aliyun.com/pypi/simple && \
|
||||
|
||||
@@ -22,12 +22,12 @@ docker build --network=host -t mineru:gcu-vllm-latest -f gcu.Dockerfile .
|
||||
|
||||
```bash
|
||||
docker run -u root --name mineru_docker \
|
||||
--network=host \
|
||||
--ipc=host \
|
||||
--privileged \
|
||||
-e MINERU_MODEL_SOURCE=modelscope \
|
||||
-it enflame:docker_images_topsrider_i3x_3.6.20260106_vllm0.11 \
|
||||
/bin/bash
|
||||
--network=host \
|
||||
--ipc=host \
|
||||
--privileged \
|
||||
-e MINERU_MODEL_SOURCE=local \
|
||||
-it enflame:docker_images_topsrider_i3x_3.6.20260106_vllm0.11 \
|
||||
/bin/bash
|
||||
```
|
||||
|
||||
执行该命令后,您将进入到Docker容器的交互式终端,您可以直接在容器内运行MinerU相关命令来使用MinerU的功能。
|
||||
|
||||
Reference in New Issue
Block a user