22 lines
665 B
Docker
22 lines
665 B
Docker
# RAG Agent app. Build from repo root (clone git@git.lesha.spb.ru:alex/RagAgent.git then docker compose build).
|
|
FROM python:3.12-slim
|
|
|
|
WORKDIR /app
|
|
|
|
# Install git for optional in-image clone; app is usually COPY'd from build context
|
|
RUN apt-get update -qq && apt-get install -y --no-install-recommends git openssh-client \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# Copy repo (when built from cloned repo: docker compose build)
|
|
COPY pyproject.toml ./
|
|
COPY src ./src
|
|
COPY README.md ./
|
|
|
|
RUN pip install --no-cache-dir -e .
|
|
|
|
# Default: run CLI (override in compose or when running)
|
|
ENV RAG_DB_DSN=""
|
|
ENV RAG_REPO_PATH="/data"
|
|
ENTRYPOINT ["rag-agent"]
|
|
CMD ["ask", "--help"]
|