Commit a11d8f84 authored by 王国顺's avatar 王国顺

修改dockerfile

parent 06cd9c46
# Version: 2.0.0 PaddleOCR-2.8.1
FROM registry.baidubce.com/paddlepaddle/paddle:2.0.0
ENV BASE_DIR="/PaddleOCR"
# PaddleOCR base on Python3.7
RUN pip3.7 install --upgrade pip -i https://mirror.baidu.com/pypi/simple
......@@ -31,6 +31,12 @@ RUN tar xf /PaddleOCR/inference/ch_ppocr_mobile_v2.0_cls_infer.tar -C /PaddleOCR
ADD https://paddleocr.bj.bcebos.com/PP-OCRv4/chinese/ch_PP-OCRv4_rec_infer.tar /PaddleOCR/inference/
RUN tar xf /PaddleOCR/inference/ch_PP-OCRv4_rec_infer.tar -C /PaddleOCR/inference/
RUN adduser -u 1000 --disabled-password gx \
&& chown -R gx:gx $BASE_DIR \
&& chmod -R 777 $BASE_DIR \
EXPOSE 8868
USER 1000
CMD ["/bin/bash","-c","hub install deploy/hubserving/ocr_system/ && hub serving start -m ocr_system"]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment