Настройки развертывания

This commit is contained in:
2026-01-30 22:53:16 +03:00
parent e899f54f04
commit 5ce6335ad8
6 changed files with 141 additions and 7 deletions

21
Dockerfile Normal file
View File

@@ -0,0 +1,21 @@
# 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"]