FROM python:3.12-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY main.py .
COPY graphiti_worker.py .
COPY llm_call_worker.py .
COPY patch_graphiti_core.py /tmp/patch_graphiti_core.py
RUN python3 /tmp/patch_graphiti_core.py
EXPOSE 8000
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
