Spaces:
Sleeping
Sleeping
| FROM python:3.10-slim | |
| WORKDIR /app | |
| # Install system dependencies required for OpenCV/Pillow if needed | |
| RUN apt-get update && apt-get install -y libglib2.0-0 libsm6 libxext6 libxrender-dev && rm -rf /var/lib/apt/lists/* | |
| COPY backend/requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy the entire project for path resolution, or correctly scope it | |
| COPY backend/ ./backend/ | |
| COPY model/ ./model/ | |
| COPY utils/ ./utils/ | |
| EXPOSE 8000 | |
| CMD ["uvicorn", "backend.main:app", "--host", "0.0.0.0", "--port", "8000"] | |