Skip to content

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

fix: update Dockerfile to use sglang base image and adjust mineru installation

myhlolif2ff3472a0d2
diff --git a/docker/china/Dockerfile b/docker/china/Dockerfile
index 029917b2..42a5972b 100644
--- a/docker/china/Dockerfile
+++ b/docker/china/Dockerfile
@@ -1,33 +1,8 @@
-# Use the official Ubuntu base image
-FROM ubuntu:22.04
-
-# Set environment variables to non-interactive to avoid prompts during installation
-ENV DEBIAN_FRONTEND=noninteractive
-
-# Update the package list and install necessary packages
-RUN apt-get update && \
- apt-get install -y \
- software-properties-common && \
- add-apt-repository ppa:deadsnakes/ppa && \
- apt-get update && \
- apt-get install -y \
- python3.10 \
- python3.10-venv \
- python3.10-distutils \
- python3-pip \
- wget \
- git \
- libgl1 \
- libglib2.0-0 \
- && rm -rf /var/lib/apt/lists/*
-
-# Set Python 3.10 as the default python3
-RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.10 1
+# Use the official sglang image
+FROM lmsysorg/sglang:v0.4.7-cu124
# install mineru latest
-RUN /bin/bash -c "pip3 install --upgrade pip -i https://mirrors.aliyun.com/pypi/simple && \
- pip3 install uv -i https://mirrors.aliyun.com/pypi/simple && \
- uv pip install 'mineru[all]>=2.0.0' -i https://mirrors.aliyun.com/pypi/simple"
+RUN python3 -m pip install 'mineru[core]>=2.0.0' -i https://mirrors.aliyun.com/pypi/simple --break-system-packages
# Download models and update the configuration file
RUN /bin/bash -c "mineru-models-download -s modelscope -m all"
diff --git a/docker/global/Dockerfile b/docker/global/Dockerfile
index 7b0c8610..4578a3af 100644
--- a/docker/global/Dockerfile
+++ b/docker/global/Dockerfile
@@ -1,33 +1,8 @@
-# Use the official Ubuntu base image
-FROM ubuntu:22.04
-
-# Set environment variables to non-interactive to avoid prompts during installation
-ENV DEBIAN_FRONTEND=noninteractive
-
-# Update the package list and install necessary packages
-RUN apt-get update && \
- apt-get install -y \
- software-properties-common && \
- add-apt-repository ppa:deadsnakes/ppa && \
- apt-get update && \
- apt-get install -y \
- python3.10 \
- python3.10-venv \
- python3.10-distutils \
- python3-pip \
- wget \
- git \
- libgl1 \
- libglib2.0-0 \
- && rm -rf /var/lib/apt/lists/*
-
-# Set Python 3.10 as the default python3
-RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.10 1
+# Use the official sglang image
+FROM lmsysorg/sglang:v0.4.7-cu124
# install mineru latest
-RUN /bin/bash -c "pip3 install --upgrade pip && \
- pip3 install uv && \
- uv pip install 'mineru[all]>=2.0.0'"
+RUN python3 -m pip install 'mineru[core]>=2.0.0' --break-system-packages
# Download models and update the configuration file
RUN /bin/bash -c "mineru-models-download -s huggingface -m all"