Spaces:
Running
Running
| FROM python:3.10 | |
| # Install tesseract and dependencies | |
| RUN apt-get update && apt-get install -y tesseract-ocr | |
| # Install Python dependencies | |
| COPY requirements.txt /app/requirements.txt | |
| RUN pip install -r /app/requirements.txt | |
| # Set the working directory | |
| WORKDIR /app | |
| # Copy the rest of your application code | |
| COPY . /app | |
| # Command to run your FastAPI app | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] | |