Dockerfile 690 Bytes
Newer Older
1
# Use the official sglang image
2
FROM lmsysorg/sglang:v0.4.8.post1-cu126
Aoyang Fang's avatar
Aoyang Fang committed
3

4
# Install libgl for opencv support
5
6
7
8
9
10
RUN apt-get update && \
    apt-get install -y fonts-noto-core fonts-noto-cjk && \
    apt-get install -y libgl1 && \
    apt-get clean && \
    fc-cache -fv && \
    rm -rf /var/lib/apt/lists/*
11
12

# Install mineru latest
13
RUN python3 -m pip install -U 'mineru[core]' --break-system-packages
14
15

# Download models and update the configuration file
16
RUN /bin/bash -c "mineru-models-download -s huggingface -m all"
Aoyang Fang's avatar
Aoyang Fang committed
17
18

# Set the entry point to activate the virtual environment and run the command line tool
19
ENTRYPOINT ["/bin/bash", "-c", "export MINERU_MODEL_SOURCE=local && exec \"$@\"", "--"]