## Documentation (20 files) - DAARION Ontology Core v1 (Agent → MicroDAO → Node → District) - User Onboarding & Identity Layer (DAIS) - Data Model UPDATE, Event Catalog, Governance & Permissions - Rooms Layer, City/MicroDAO/Agents/Nodes Interface Architecture - Helper files: ontology-summary, lifecycles, event-schemas ## Database Migration (027) - DAIS tables: dais_identities, dais_emails, dais_wallets, dais_keys - agent_assignments table for Assignment Layer - rooms table for Rooms Layer - event_outbox for NATS event delivery - New enums: agent_role, microdao_type, node_kind, node_status, etc. - Updated agents, microdaos, nodes tables with ontology fields ## Backend - DAIS service & routes (/api/v1/dais/*) - Assignment service & routes (/api/v1/assignments/*) - Domain types for DAIS and Ontology ## Frontend - Ontology types (Agent, MicroDAO, Node, DAIS, Assignments) - API clients for DAIS and Assignments - UI components: DaisProfileCard, AssignmentsPanel, OntologyBadge Non-breaking update - all existing functionality preserved.
32 lines
903 B
Docker
32 lines
903 B
Docker
FROM python:3.11-slim
|
|
|
|
# Встановити wget для healthcheck
|
|
RUN apt-get update && apt-get install -y --no-install-recommends wget curl \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
WORKDIR /app
|
|
|
|
# Копіювати requirements
|
|
COPY requirements.txt .
|
|
|
|
# Встановити Python залежності
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
# Embedding model завантажиться автоматично при першому запуску
|
|
# Це уникає проблем з мережею під час build
|
|
|
|
# Копіювати код
|
|
COPY app/ ./app/
|
|
|
|
# Створити директорію для даних
|
|
RUN mkdir -p /app/chroma_data
|
|
|
|
EXPOSE 8898
|
|
|
|
# Health check
|
|
HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 \
|
|
CMD curl -f http://localhost:8898/health || exit 1
|
|
|
|
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8898"]
|
|
|