From 41175959049c4f2ed505e5309d45c7d336969e61 Mon Sep 17 00:00:00 2001 From: Skay Date: Fri, 6 Aug 2021 11:14:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复 [issues #3565](https://github.com/PaddlePaddle/PaddleOCR/issues/3565) 中提到的错误 做出如下改动: 1. 修改镜像paddle版本 `2.0.0` -> `2.1.2` 1. 第11行加入下载指令替换原有python的typing.py --- deploy/docker/hubserving/cpu/Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/deploy/docker/hubserving/cpu/Dockerfile b/deploy/docker/hubserving/cpu/Dockerfile index ef1a7b7b..8de24946 100644 --- a/deploy/docker/hubserving/cpu/Dockerfile +++ b/deploy/docker/hubserving/cpu/Dockerfile @@ -1,5 +1,5 @@ # Version: 2.0.0 -FROM registry.baidubce.com/paddlepaddle/paddle:2.0.0 +FROM registry.baidubce.com/paddlepaddle/paddle:2.1.2 # PaddleOCR base on Python3.7 RUN pip3.7 install --upgrade pip -i https://mirror.baidu.com/pypi/simple @@ -8,6 +8,8 @@ RUN pip3.7 install paddlehub --upgrade -i https://mirror.baidu.com/pypi/simple RUN git clone https://github.com/PaddlePaddle/PaddleOCR.git /PaddleOCR +ADD https://raw.githubusercontent.com/python/cpython/3.7/Lib/typing.py /usr/local/lib/python3.7 + WORKDIR /PaddleOCR RUN pip3.7 install -r requirements.txt -i https://mirror.baidu.com/pypi/simple @@ -27,4 +29,4 @@ RUN tar xf /PaddleOCR/inference/{file}.tar -C /PaddleOCR/inference/ EXPOSE 8868 -CMD ["/bin/bash","-c","hub install deploy/hubserving/ocr_system/ && hub serving start -m ocr_system"] \ No newline at end of file +CMD ["/bin/bash","-c","hub install deploy/hubserving/ocr_system/ && hub serving start -m ocr_system"] -- GitLab