feat: Phase 6 - Docker, systemd, and installation scripts

This commit is contained in:
2026-04-13 15:53:08 -04:00
parent 732555cf55
commit 748f05be46
9 changed files with 495 additions and 0 deletions

32
Dockerfile.indexer Normal file
View File

@@ -0,0 +1,32 @@
# Indexer-only Dockerfile (lightweight, no API dependencies)
FROM python:3.11-slim
WORKDIR /app
# Install dependencies
RUN apt-get update && apt-get install -y \
build-essential \
&& rm -rf /var/lib/apt/lists/*
# Install Python dependencies
RUN pip install --no-cache-dir \
pydantic lancedb pyarrow requests watchdog typer rich numpy httpx
# Copy application code
COPY companion/ ./companion/
COPY companion/indexer_daemon/ ./companion/indexer_daemon/
COPY companion/rag/ ./companion/rag/
# Create directories for data
RUN mkdir -p /data/vectors
# Copy default config
COPY config.json /app/config.json
# Environment variables
ENV PYTHONPATH=/app
ENV COMPANION_CONFIG=/app/config.json
ENV COMPANION_DATA_DIR=/data
# Default command (can be overridden)
CMD ["python", "-m", "companion.indexer_daemon.cli", "index"]