Dockerfile 632 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
Xiaomeng Zhao's avatar
Xiaomeng Zhao committed
5
RUN apt-get update && apt-get install -y libgl1 && apt-get clean && rm -rf /var/lib/apt/lists/*
6
7

# Install mineru latest
8
RUN python3 -m pip install -U 'mineru[core]' -i https://mirrors.aliyun.com/pypi/simple --break-system-packages
9
10

# Download models and update the configuration file
11
RUN /bin/bash -c "mineru-models-download -s modelscope -m all"
Aoyang Fang's avatar
Aoyang Fang committed
12
13

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