# Version: 1.0.0FROM hub.baidubce.com/paddlepaddle/paddle:latest-gpu-cuda10.0-cudnn7-dev# PaddleOCR base on Python3.7RUN pip3.7 install--upgrade pip -i https://mirror.baidu.com/pypi/simpleRUN python3.7 -m pip install paddlepaddle-gpu==2.0.0rc0 -i https://mirror.baidu.com/pypi/simpleRUN pip3.7 install paddlehub --upgrade-i https://mirror.baidu.com/pypi/simpleRUN git clone https://github.com/PaddlePaddle/PaddleOCR.git /PaddleOCRWORKDIR /PaddleOCRRUN pip3.7 install-r requirements.txt -i https://mirror.baidu.com/pypi/simpleRUN mkdir-p /PaddleOCR/inference/# Download orc detect model(light version). if you want to change normal version, you can change ch_ppocr_mobile_v1.1_det_infer to ch_ppocr_server_v1.1_det_infer, also remember change det_model_dir in deploy/hubserving/ocr_system/params.py)ADD {link} /PaddleOCR/inference/RUN tar xf /PaddleOCR/inference/{file}.tar -C /PaddleOCR/inference/# Download direction classifier(light version). If you want to change normal version, you can change ch_ppocr_mobile_v1.1_cls_infer to ch_ppocr_mobile_v1.1_cls_infer, also remember change cls_model_dir in deploy/hubserving/ocr_system/params.py)ADD {link} /PaddleOCR/inference/RUN tar xf /PaddleOCR/inference/{file}-C /PaddleOCR/inference/# Download orc recognition model(light version). If you want to change normal version, you can change ch_ppocr_mobile_v1.1_rec_infer to ch_ppocr_server_v1.1_rec_infer, also remember change rec_model_dir in deploy/hubserving/ocr_system/params.py)ADD {link} /PaddleOCR/inference/RUN tar xf /PaddleOCR/inference/{file}.tar -C /PaddleOCR/inference/EXPOSE 8868CMD ["/bin/bash","-c","hub install deploy/hubserving/ocr_system/ && hub serving start -m ocr_system"]