"test/vscode:/vscode.git/clone" did not exist on "b2cb64e7b1846b1cbe96a512a0f6cb4242dfc729"
Dockerfile 591 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
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]' --break-system-packages
9
10

# Download models and update the configuration file
11
RUN /bin/bash -c "mineru-models-download -s huggingface -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 \"$@\"", "--"]