Agent-Q3 / Dockerfile
madDegen's picture
feat: build tools + RAG deps re-enabled + deep research skills (Dockerfile)
97750c8 verified
Raw
History Blame Contribute Delete
1.72 kB
# ─────────────────────────────────────────────────────────────────────────────
# Agent-Q3 Python app image β€” used by the multimodal, coder, and research services.
# Ollama runs in its own container (ollama/ollama image) β€” see docker-compose.yml.
# ─────────────────────────────────────────────────────────────────────────────
FROM python:3.11-slim
# System deps β€” build-essential+gcc for chromadb C extensions; git for HF CLI
RUN apt-get update && apt-get install -y \
curl ca-certificates git \
build-essential gcc g++ \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Pre-install CPU-only torch so sentence-transformers skips the CUDA variant
RUN pip install --no-cache-dir --upgrade pip \
&& pip install --no-cache-dir torch --index-url https://download.pytorch.org/whl/cpu
# Python deps (chromadb + sentence-transformers now installable with build tools above)
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Skills (copied first β€” changes here don't invalidate the deps layer above)
COPY skills/ ./skills/
# Source
COPY orchestrator/ ./orchestrator/
COPY config/ ./config/
EXPOSE 8000 8001 8002
# Default command runs the multimodal orchestrator.
# docker-compose overrides this per-service for coder/research.
CMD ["python", "-m", "uvicorn", "orchestrator.main:app", \
"--host", "0.0.0.0", "--port", "8000", "--log-level", "info"]