Prechádzať zdrojové kódy

fix: 尝试修复Dockerfile

jingze_cheng 9 mesiacov pred
rodič
commit
58389af263
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  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