Spaces:
Running
Running
fix: file permission
Browse files- Dockerfile +1 -1
Dockerfile
CHANGED
@@ -24,5 +24,5 @@ RUN chmod 777 /.config/PDFMathTranslate
|
|
24 |
|
25 |
# write several lines to the file /.config/PDFMathTranslate/config.json
|
26 |
RUN echo '{ "USE_MODELSCOPE": "0", "PDF2ZH_LANG_FROM": "English", "PDF2ZH_LANG_TO": "Simplified Chinese", "NOTO_FONT_PATH": "/app/SourceHanSerifCN-Regular.ttf", "translators":[]}' > /.config/PDFMathTranslate/config.json
|
27 |
-
|
28 |
CMD ["pdf2zh", "-i", "--config", "/.config/PDFMathTranslate/config.json"]
|
|
|
24 |
|
25 |
# write several lines to the file /.config/PDFMathTranslate/config.json
|
26 |
RUN echo '{ "USE_MODELSCOPE": "0", "PDF2ZH_LANG_FROM": "English", "PDF2ZH_LANG_TO": "Simplified Chinese", "NOTO_FONT_PATH": "/app/SourceHanSerifCN-Regular.ttf", "translators":[]}' > /.config/PDFMathTranslate/config.json
|
27 |
+
RUN chmod 777 /.config/PDFMathTranslate/config.json
|
28 |
CMD ["pdf2zh", "-i", "--config", "/.config/PDFMathTranslate/config.json"]
|