FROM python:3.10-slim RUN apt-get update && apt-get install -y tesseract-ocr COPY requirements.txt . RUN pip install -r requirements.txt -f https://download.pytorch.org/whl/torch_stable.html RUN python -c "import spacy; spacy.cli.download('en_core_web_sm')" COPY . /code WORKDIR /code EXPOSE 7860 CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]