File size: 587 Bytes
71a9e68
 
 
 
254fb1c
 
 
 
71a9e68
254fb1c
 
71a9e68
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM python:3.10

ARG PIP_NO_CACHE_DIR=1

RUN apt-get update \
    && apt-get install -y tesseract-ocr \
    && rm -rf /var/lib/apt/lists/*

RUN wget http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2.20_amd64.deb \
    && dpkg -i libssl1.1_1.1.1f-1ubuntu2.20_amd64.deb \
    && rm libssl1.1_1.1.1f-1ubuntu2.20_amd64.deb

RUN pip install torch==2.1.1 -i https://download.pytorch.org/whl/cpu
RUN pip install paddlepaddle==2.5.1 -i https://mirror.baidu.com/pypi/simple
RUN pip install transformers pytesseract paddleocr gradio Pillow

CMD ["python", "app.py"]