FROM python:3.10 RUN apt-get update -y && apt-get install -y build-essential WORKDIR /app COPY api.py api.py RUN pip install Flask RUN pip3 install torch torchvision --index-url https://download.pytorch.org/whl/cpu RUN pip install easyocr RUN pip install gunicorn CMD ["gunicorn","-b","0.0.0.0:7860", "api:app","--timeout","950"]