mirror of
https://github.com/RapidAI/RapidOCR.git
synced 2026-11-10 21:10:55 +08:00
fix(rapidocr_api): 补充依赖,指定版本号 (#305)
* 补充依赖,指定版本号 补充依赖并指定版本1.3.25 rapidocr-onnxruntime 当前版(1.4.3)某些情况下会漏字 * Update README.md * Update README.md
This commit is contained in:
1 parent
6bcabddbca
commit
9824aef215
2 files changed
+21
-1
No files matched your search
+1
-1
@@ -6,7 +6,7 @@ ENV DEBIAN_FRONTEND=noninteractive
|
||||
WORKDIR /app
|
||||
|
||||
RUN set -eux; \
|
||||
pip install --no-cache-dir rapidocr_api -i https://mirrors.aliyun.com/pypi/simple; \
|
||||
pip install --no-cache-dir rapidocr_api pillow rapidocr-onnxruntime==1.3.25 -i https://mirrors.aliyun.com/pypi/simple; \
|
||||
pip uninstall -y opencv-python; \
|
||||
pip install --no-cache-dir opencv-python-headless -i https://mirrors.aliyun.com/pypi/simple
|
||||
|
||||
|
||||
@@ -1 +1,21 @@
|
||||
### See [Documentation](https://rapidai.github.io/RapidOCRDocs/install_usage/rapidocr_api/usage/)
|
||||
|
||||
build时使用宿主的网络
|
||||
```
|
||||
docker build -t rapidocr_api:0.1.4 --network host .
|
||||
```
|
||||
|
||||
使用宿主上的代理
|
||||
```
|
||||
docker build -t rapidocr_api:0.1.4 --network host --build-arg HTTP_PROXY=http://127.0.0.1:8888 --build-arg HTTPS_PROXY=http://127.0.0.1:8888 .
|
||||
```
|
||||
|
||||
调试运行:
|
||||
```
|
||||
docker run --rm -p 9003:9003 --name rapidocr_api rapidocr_api:0.1.4
|
||||
```
|
||||
|
||||
运行:
|
||||
```
|
||||
docker run -d -p 9003:9003 --name rapidocr_api rapidocr_api:0.1.4
|
||||
```
|
||||
Reference in new issue
Block a user