Align the brain prompts, graph view, and startup defaults with the latest phase 1 flow so local runs and navigation stay consistent.
22 lines
478 B
Docker
22 lines
478 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 ["sh", "-c", "uvicorn app.main:app --host ${HOST:-0.0.0.0} --port ${PORT:-9527}"]
|