Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pdf-miner
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Qin Kaijie
pdf-miner
Commits
0e77b8a0
Unverified
Commit
0e77b8a0
authored
Aug 30, 2024
by
Xiaomeng Zhao
Committed by
GitHub
Aug 30, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Dockerfile
parent
b72d4ebd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Dockerfile
Dockerfile
+2
-2
No files found.
Dockerfile
View file @
0e77b8a0
...
@@ -44,8 +44,8 @@ RUN /bin/bash -c "wget https://gitee.com/myhloli/MinerU/raw/master/magic-pdf.tem
...
@@ -44,8 +44,8 @@ RUN /bin/bash -c "wget https://gitee.com/myhloli/MinerU/raw/master/magic-pdf.tem
RUN
/bin/bash
-c
"pip3 install modelscope &&
\
RUN
/bin/bash
-c
"pip3 install modelscope &&
\
wget https://gitee.com/myhloli/MinerU/raw/master/docs/download_models.py &&
\
wget https://gitee.com/myhloli/MinerU/raw/master/docs/download_models.py &&
\
python3 download_models.py &&
\
python3 download_models.py &&
\
sed -i 's|/tmp/models|/root/.cache/modelscope/hub/
wanderkid
/PDF-Extract-Kit/models|g' /root/magic-pdf.json &&
\
sed -i 's|/tmp/models|/root/.cache/modelscope/hub/
opendatalab
/PDF-Extract-Kit/models|g' /root/magic-pdf.json &&
\
sed -i 's|cpu|cuda|g' /root/magic-pdf.json"
sed -i 's|cpu|cuda|g' /root/magic-pdf.json"
# Set the entry point to activate the virtual environment and run the command line tool
# Set the entry point to activate the virtual environment and run the command line tool
ENTRYPOINT
["/bin/bash", "-c", "source /opt/mineru_venv/bin/activate && exec \"$@\"", "--"]
ENTRYPOINT
["/bin/bash", "-c", "source /opt/mineru_venv/bin/activate && exec \"$@\"", "--"]
\ No newline at end of file
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