FROM python:3.11-slim

WORKDIR /app

COPY backend/requirements.txt .

RUN pip install --no-cache-dir -r requirements.txt

# ✅ Copy the entire backend directory as /app/backend
COPY backend/ ./backend

# ✅ Set PYTHONPATH to include /app
ENV PYTHONPATH=/app

CMD ["uvicorn", "backend.main:app", "--host", "0.0.0.0", "--port", "8000"]
