Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wangsen
MinerU
Commits
e0fbef2a
Unverified
Commit
e0fbef2a
authored
Jan 10, 2025
by
Xiaomeng Zhao
Committed by
GitHub
Jan 10, 2025
Browse files
Merge pull request #1492 from myhloli/dev
build(docker): use Aliyun mirror for magic-pdf installation
parents
25931417
e7d7b342
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
docker/ascend_npu/Dockerfile
docker/ascend_npu/Dockerfile
+2
-2
docker/china/Dockerfile
docker/china/Dockerfile
+1
-1
No files found.
docker/ascend_npu/Dockerfile
View file @
e0fbef2a
...
...
@@ -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 &&
\
...
...
docker/china/Dockerfile
View file @
e0fbef2a
...
...
@@ -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 &&
\
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment