Spaces:
Sleeping
Sleeping
fix: file permission
Browse files23 unmodified lines242526272823 unmodified lines# write several lines to the file /.config/PDFMathTranslate/config.jsonRUN echo '{ "USE_MODELSCOPE": "0", "PDF2ZH_LANG_FROM": "English", "PDF2ZH_LANG_TO": "Simplified Chinese", "NOTO_FONT_PATH": "/app/SourceHanSerifCN-Regular.ttf", "translators":[]}' > /.config/PDFMathTranslate/config.jsonCMD ["pdf2zh", "-i", "--config", "/.config/PDFMathTranslate/config.json"]23 unmodified lines242526272823 unmodified lines# write several lines to the file /.config/PDFMathTranslate/config.jsonRUN echo '{ "USE_MODELSCOPE": "0", "PDF2ZH_LANG_FROM": "English", "PDF2ZH_LANG_TO": "Simplified Chinese", "NOTO_FONT_PATH": "/app/SourceHanSerifCN-Regular.ttf", "translators":[]}' > /.config/PDFMathTranslate/config.jsonRUN chmod 777 /.config/PDFMathTranslate/config.jsonCMD ["pdf2zh", "-i", "--config", "/.config/PDFMathTranslate/config.json"]
Dockerfile+1-1