Sfoglia il codice sorgente

Merge pull request #1494 from opendatalab/release-1.0.0

build(docker): use Aliyun mirror for magic-pdf installation
Xiaomeng Zhao 10 mesi fa
parent
commit
4c5a469074
2 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. 2 2
      docker/ascend_npu/Dockerfile
  2. 1 1
      docker/china/Dockerfile

+ 2 - 2
docker/ascend_npu/Dockerfile

@@ -10,7 +10,7 @@ ENV DEBIAN_FRONTEND=noninteractive
 RUN apt-get update && \
     apt-get install -y \
         software-properties-common && \
-    add-apt-repository ppa:deadsnakes/ppa && \
+    add-apt-repository -y ppa:deadsnakes/ppa && \
     apt-get update && \
     apt-get install -y \
         python3.10 \
@@ -42,7 +42,7 @@ RUN /bin/bash -c "source /opt/mineru_venv/bin/activate && \
 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 -U magic-pdf"
+    pip3 install -U magic-pdf -i https://mirrors.aliyun.com/pypi/simple"
 
 # Download models and update the configuration file
 RUN /bin/bash -c "source /opt/mineru_venv/bin/activate && \

+ 1 - 1
docker/china/Dockerfile

@@ -38,7 +38,7 @@ RUN /bin/bash -c "source /opt/mineru_venv/bin/activate && \
 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 -U magic-pdf"
+    pip3 install -U magic-pdf -i https://mirrors.aliyun.com/pypi/simple"
 
 # Download models and update the configuration file
 RUN /bin/bash -c "pip3 install modelscope && \