FROM python:3.12-slim

WORKDIR /app

RUN apt-get update && apt-get install -y --no-install-recommends \
    curl git ca-certificates \
    python3-pip nodejs npm golang \
    && rm -rf /var/lib/apt/lists/*

ENV GIT_SSL_NO_VERIFY=1

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

COPY base_agent.py .
COPY main.py .
COPY vp_agent.py .
COPY pm_agent.py .
COPY sales_agent.py .
COPY engineer_agent.py .
COPY conversation.py .
COPY personas/ /app/personas/

# Gitea self-signed cert workaround
RUN git config --global http.sslVerify false

ENTRYPOINT ["python", "main.py"]
