megatrump commited on
Commit
2024352
·
1 Parent(s): f70f022

更新了远程仓库的版本

Browse files
Files changed (2) hide show
  1. Dockerfile +7 -1
  2. build.sh +2 -0
Dockerfile CHANGED
@@ -29,8 +29,14 @@ USER appuser
29
  ENV PATH="/home/appuser/.local/bin:${PATH}"
30
 
31
  WORKDIR /github
32
- RUN git clone -b fix-gradio-ui https://github.com/tylzh97/PDFMathTranslate.git PDFMathTranslate && \
 
 
 
 
 
33
  cd PDFMathTranslate && \
 
34
  pip install --user . && \
35
  sleep 0
36
 
 
29
  ENV PATH="/home/appuser/.local/bin:${PATH}"
30
 
31
  WORKDIR /github
32
+ # RUN git clone -b fix-gradio-ui https://github.com/tylzh97/PDFMathTranslate.git PDFMathTranslate && \
33
+ # cd PDFMathTranslate && \
34
+ # pip install --user . && \
35
+ # sleep 0
36
+
37
+ RUN git clone https://github.com/Byaidu/PDFMathTranslate.git PDFMathTranslate && \
38
  cd PDFMathTranslate && \
39
+ git checkout v1.9.9 && \
40
  pip install --user . && \
41
  sleep 0
42
 
build.sh CHANGED
@@ -1,4 +1,6 @@
1
 
 
 
2
  docker build -t pdf-math-translator .
3
  docker run --rm -t -p 7860:7860 --name pdf --env-file .env pdf-math-translator
4
  # docker exec -it pdf /bin/bash
 
1
 
2
+ set -ex
3
+
4
  docker build -t pdf-math-translator .
5
  docker run --rm -t -p 7860:7860 --name pdf --env-file .env pdf-math-translator
6
  # docker exec -it pdf /bin/bash