FROM python:3.12-slim

# Build-tools
RUN apt-get update && apt-get install -y \
    build-essential g++ gcc \
    && rm -rf /var/lib/apt/lists/*

WORKDIR /app

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

# MUUDA SEDA RIDA:
CMD ["python", "-m", "uvicorn", "src.rag_api:app", "--host", "0.0.0.0", "--port", "8000"]
