瀏覽代碼

fix: 尝试修复Dockerfile

jingze_cheng 9 月之前
父節點
當前提交
58389af263
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Dockerfile

+ 1 - 1
Dockerfile

@@ -100,7 +100,7 @@ stdout_logfile_maxbytes=50MB\n\
 " > /etc/supervisor/conf.d/be.conf
 RUN cd / && wget ftp://192.168.199.31/table-paddleclas.tgz && tar xvf table-paddleclas.tgz
 RUN cd / && wget ftp://192.168.199.31/table-paddleocr.tgz && tar xvf table-paddleocr.tgz
-RUN cd models/det && wget ftp://192.168.199.31/det_pse/quad/20240205/det_pse.zip && unzip det_pse.zip -d tmp && mv tmp/det_pse det_pse_quad && rm -r tmp && rm det_pse.zip
+RUN mkdir -p models/det && cd models/det && wget ftp://192.168.199.31/det_pse/quad/20240205/det_pse.zip && unzip det_pse.zip -d tmp && mv tmp/det_pse det_pse_quad && rm -r tmp && rm det_pse.zip
 RUN sed -i "s#os.chdir('ppocr/postprocess/pse_postprocess/pse')#os.chdir('PaddleOCR/ppocr/postprocess/pse_postprocess/pse')#g" PaddleOCR/ppocr/postprocess/pse_postprocess/pse/__init__.py; \
     cat PaddleOCR/ppocr/postprocess/pse_postprocess/pse/__init__.py