Introduce the backend pieces for brain memory ingestion, routing, and system telemetry so the new knowledge workflows can project data into a brain view. The supporting tests lock in the new behavior and keep the expanded backend surface stable. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
22 lines
463 B
Docker
22 lines
463 B
Docker
FROM python:3.12-slim
|
|
|
|
WORKDIR /app
|
|
|
|
# 安装依赖
|
|
COPY pyproject.toml .
|
|
RUN pip install --no-cache-dir uv && \
|
|
uv pip install --system --no-cache -r pyproject.toml
|
|
|
|
# 安装可选依赖
|
|
RUN uv pip install --system --no-cache pymupdf python-docx
|
|
|
|
# 复制代码
|
|
COPY app/ ./app/
|
|
|
|
# 创建数据目录
|
|
RUN mkdir -p /data/jarvis/data /data/jarvis/chroma /data/jarvis/uploads
|
|
|
|
EXPOSE 9527
|
|
|
|
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "9527"]
|