Files
JARVIS/backend/Dockerfile
DESKTOP-72TV0V4\caoxiaozhu 6f594631e9 Refine knowledge brain workflow
Align the brain prompts, graph view, and startup defaults with the
latest phase 1 flow so local runs and navigation stay consistent.
2026-03-22 22:42:47 +08:00

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}"]