File size: 342 Bytes
52ded87
 
 
 
30ce653
52ded87
1a1a0aa
 
52ded87
1a1a0aa
 
52ded87
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
FROM python:3.12

WORKDIR /code

RUN apt-get update && apt-get install ffmpeg libsm6 libxext6  -y
RUN pip install easyocr opencv-python flask
# Create the directory if it doesn't exist
RUN mkdir -p /.EasyOCR

# Grant permissions to the directory
RUN chmod -R 777 /.EasyOCR
COPY . .

CMD ["flask", "run", "--host", "0.0.0.0", "--port", "7860"]