64b840c94c
- FastAPI + HTMX UI: dashboard, agents CRUD, chat, audit, tools - SQLite schema: agents, conversations, messages, audit, sessions - Code-agent sync (agents/*.py -> DB on startup) - MCP client with health check - Token auth (Bearer + session) - LiteLLM integration via llm.py - Docker Compose: agent-platform + mcp-tools services - Smoke tests pass: /health 200, /api/agents 200, / 401
17 lines
300 B
Docker
17 lines
300 B
Docker
FROM python:3.12-slim
|
|
|
|
WORKDIR /app
|
|
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir --upgrade pip && \
|
|
pip install --no-cache-dir -r requirements.txt
|
|
|
|
COPY server.py .
|
|
|
|
RUN useradd -m -u 1000 mcpuser && chown -R mcpuser:mcpuser /app
|
|
USER mcpuser
|
|
|
|
EXPOSE 8501
|
|
|
|
CMD ["python", "server.py"]
|