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

4
# install mineru latest
5
RUN python3 -m pip install -U 'mineru[core]' --break-system-packages
6
7

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

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