Spaces:
Running
Running
fix: config path
Browse files- Dockerfile +7 -7
Dockerfile
CHANGED
@@ -16,13 +16,13 @@ RUN mkdir -p /.cache
|
|
16 |
RUN chmod 777 /.cache
|
17 |
RUN mkdir -p ./gradio_files
|
18 |
RUN chmod 777 ./gradio_files
|
19 |
-
RUN mkdir -p
|
20 |
-
RUN chmod 777
|
21 |
-
RUN mkdir -p
|
22 |
-
RUN chmod 777
|
23 |
|
24 |
|
25 |
-
# write several lines to the file
|
26 |
-
RUN echo '{ "USE_MODELSCOPE": "0", "PDF2ZH_LANG_FROM": "English", "PDF2ZH_LANG_TO": "Simplified Chinese", "NOTO_FONT_PATH": "/app/SourceHanSerifCN-Regular.ttf", "translators":[]}' >
|
27 |
|
28 |
-
CMD ["pdf2zh", "-i"]
|
|
|
16 |
RUN chmod 777 /.cache
|
17 |
RUN mkdir -p ./gradio_files
|
18 |
RUN chmod 777 ./gradio_files
|
19 |
+
RUN mkdir -p /.config
|
20 |
+
RUN chmod 777 /.config
|
21 |
+
RUN mkdir -p /.config/PDFMathTranslate
|
22 |
+
RUN chmod 777 /.config/PDFMathTranslate
|
23 |
|
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"]
|