Skip to content

Commit

Permalink
[chore] udpate DockerFile to fix build bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
ProseGuys committed Nov 19, 2024
1 parent b47ce08 commit 2a93ef9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
13 changes: 5 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,13 @@ RUN /bin/bash -c "source /opt/mineru_venv/bin/activate && \
pip3 install --upgrade pip && \
wget https://gitee.com/myhloli/MinerU/raw/master/requirements-docker.txt && \
pip3 install -r requirements-docker.txt --extra-index-url https://wheels.myhloli.com -i https://mirrors.aliyun.com/pypi/simple && \
pip3 install paddlepaddle-gpu==3.0.0b1 -i https://www.paddlepaddle.org.cn/packages/stable/cu118/"

# Copy the configuration file template and install magic-pdf latest
RUN /bin/bash -c "wget https://gitee.com/myhloli/MinerU/raw/master/magic-pdf.template.json && \
cp magic-pdf.template.json /root/magic-pdf.json && \
source /opt/mineru_venv/bin/activate && \
pip3 install paddlepaddle-gpu==3.0.0b1 -i https://www.paddlepaddle.org.cn/packages/stable/cu118/ && \
pip3 install -U magic-pdf"

# Download models and update the configuration file
RUN /bin/bash -c "pip3 install modelscope && \
# Copy the configuration file template and download models and update the configuration file
RUN /bin/bash -c "source /opt/mineru_venv/bin/activate && \
wget https://gitee.com/myhloli/MinerU/raw/master/magic-pdf.template.json && \
cp magic-pdf.template.json /root/magic-pdf.json && \
wget https://gitee.com/myhloli/MinerU/raw/master/scripts/download_models.py && \
python3 download_models.py && \
sed -i 's|cpu|cuda|g' /root/magic-pdf.json"
Expand Down
1 change: 1 addition & 0 deletions requirements-docker.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ rapidocr-paddle
rapid_table
doclayout-yolo==0.0.2
detectron2
modelscope

0 comments on commit 2a93ef9

Please sign in to comment.