Spaces:
Runtime error
Runtime error
| FROM python:3.10-slim | |
| WORKDIR /app | |
| # Update system dependencies: | |
| # - libgl1 replaces libgl1-mesa-glx | |
| # - libgomp1 is added for PaddlePaddle/PaddleOCR C++ backend requirements | |
| # - rm -rf /var/lib/apt/lists/* cleans up cache to keep the image small | |
| RUN apt-get update && apt-get install -y \ | |
| libgl1 \ | |
| libglib2.0-0 \ | |
| libgomp1 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy all backend files | |
| COPY . . | |
| # Run FastAPI | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] |