FROM python:3.12-slim

WORKDIR /app

# Install dbt-agent-layer with all warehouse adapters
RUN pip install --no-cache-dir "dbt-agent-layer[all]"

# Mount your dbt project here at runtime
VOLUME /dbt_project

ENV DBT_AGENT_TRANSPORT=http
ENV DBT_AGENT_PORT=8000

EXPOSE 8000

ENTRYPOINT ["dbt-agent", "serve", "--project-dir", "/dbt_project", "--skip-build", "--transport", "http"]
