File tree Expand file tree Collapse file tree 7 files changed +10
-12
lines changed
Expand file tree Collapse file tree 7 files changed +10
-12
lines changed Original file line number Diff line number Diff line change @@ -21,8 +21,8 @@ RUN apt-get update && \
2121WORKDIR /app
2222
2323# 安装 Python 依赖
24- RUN python3 -m pip install 'rapid-doc[cpu]==0.3 .0' -i https://pypi.org/simple --break-system-packages && \
25- python3 -m pip install 'rapid-doc[api]==0.3 .0' -i https://pypi.org/simple --break-system-packages && \
24+ RUN python3 -m pip install 'rapid-doc[cpu]==0.4 .0' -i https://pypi.org/simple --break-system-packages && \
25+ python3 -m pip install 'rapid-doc[api]==0.4 .0' -i https://pypi.org/simple --break-system-packages && \
2626 python3 -m pip cache purge
2727
2828# 复制配置文件和脚本(优先复制,利用Docker缓存)
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ WORKDIR /app
3030# 安装 Python 依赖
3131RUN python3 -m pip install --upgrade pip setuptools wheel && \
3232 python3 -m pip install 'onnxruntime-gpu==1.23.0' -i https://pypi.org/simple && \
33- python3 -m pip install 'rapid-doc[gpu]==0.3 .0' 'rapid-doc[api]==0.3 .0' -i https://pypi.org/simple && \
33+ python3 -m pip install 'rapid-doc[gpu]==0.4 .0' 'rapid-doc[api]==0.4 .0' -i https://pypi.org/simple && \
3434 python3 -m pip cache purge
3535
3636# 复制配置文件和脚本(优先复制,利用Docker缓存)
Original file line number Diff line number Diff line change 1212cd docker
1313
1414# 1. CPU 模式
15- docker build -f Dockerfile -t hzkitty/rapid-doc:0.3 .0 .
15+ docker build -f Dockerfile -t hzkitty/rapid-doc:0.4 .0 .
1616
1717# 2. GPU 模式
18- docker build -f DockerfileGPU -t hzkitty/rapid-doc:0.3 .0-gpu .
18+ docker build -f DockerfileGPU -t hzkitty/rapid-doc:0.4 .0-gpu .
1919```
2020
2121
Original file line number Diff line number Diff line change 11services :
22 rapid-doc-server :
33 container_name : rapid-doc-server
4- image : hzkitty/rapid-doc:0.3 .0-gpu
4+ image : hzkitty/rapid-doc:0.4 .0-gpu
55 deploy :
66 resources :
77 reservations :
Original file line number Diff line number Diff line change 11services :
22 rapid-doc-server :
33 container_name : rapid-doc-server
4- image : hzkitty/rapid-doc:0.3 .0
4+ image : hzkitty/rapid-doc:0.4 .0
55 ports :
66 - " 8888:8888"
77 environment :
Original file line number Diff line number Diff line change @@ -73,12 +73,10 @@ core = [
7373]
7474
7575npu = [
76+ " numpy>=1.21.6,<2" ,
7677 " decorator" ,
7778 " attrs" ,
7879 " psutil" ,
79- " cloudpickle" ,
80- " ml-dtypes" ,
81- " tornado" ,
8280 " onnxruntime-cann==1.22.0" ,
8381 " torch==2.5.1" ,
8482 " torch-npu==2.5.1" ,
Original file line number Diff line number Diff line change 1- __version__ = "0.3 .0"
2- __mineru_version__ = "2.6.3 "
1+ __version__ = "0.4 .0"
2+ __mineru_version__ = "2.6.4 "
You can’t perform that action at this time.
0 commit comments