Spaces:
Running
Running
File size: 422 Bytes
7b57ad9 f2ed019 7b57ad9 54da060 a652751 54da060 a652751 f2ed019 7b57ad9 1518277 67fe4c5 1518277 7b57ad9 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
FROM python:3.12
WORKDIR /app
COPY . .
ENV PYTHONUNBUFFERED=1
RUN apt-get update && apt-get install -y libgl1 git
RUN git clone https://github.com/Byaidu/PDFMathTranslate.git
RUN cd PDFMathTranslate
RUN pip install .
RUN mkdir -p /data
RUN chmod 777 /data
RUN mkdir -p /app
RUN chmod 777 /app
RUN mkdir -p /.cache
RUN chmod 777 /.cache
RUN mkdir -p ./gradio_files
RUN chmod 777 ./gradio_files
CMD ["pdf2zh", "-i"] |