ocr-api2 / Dockerfile
badman99dev
🚀 Final OCR API with format filter and multi-page PDF
6298ba6
raw
history blame contribute delete
302 Bytes
FROM python:3.10
RUN apt-get update && \
apt-get install -y poppler-utils tesseract-ocr tesseract-ocr-hin && \
pip install --no-cache-dir fastapi uvicorn pytesseract pillow pdf2image python-multipart
COPY . /app
WORKDIR /app
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]