BGdo commited on
Commit
b894424
·
verified ·
1 Parent(s): 76ad732

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -23,8 +23,8 @@ RUN mkdir -p /data \
23
  && chmod -R 777 ./gradio_files \
24
  && chmod -R 777 /.config
25
 
26
- # 预创建配置文件并设置权限
27
- RUN touch /.config/PDFMathTranslate/config.json \
28
  && chmod 666 /.config/PDFMathTranslate/config.json
29
 
30
  CMD ["pdf2zh", "-i"]
 
23
  && chmod -R 777 ./gradio_files \
24
  && chmod -R 777 /.config
25
 
26
+ # 创建配置文件并添加基本配置
27
+ RUN echo '{"USE_MODELSCOPE": "0", "MODEL_CACHE_DIR": "/.cache"}' > /.config/PDFMathTranslate/config.json \
28
  && chmod 666 /.config/PDFMathTranslate/config.json
29
 
30
  CMD ["pdf2zh", "-i"]