Self-evolving Context Database for AI Agents. Unify Agent Memory, Knowledge RAG and Skills.
Python agent-contextagent-memoryagent-pluginsagentic-ragcontext-databasedsh-pluginknowledge-basememorymemory-managementself-evolvingvector-database
fix(docker): 在运行时校验 Studio 安装包 (#4340)
Axiomoth124ea380f252
diff --git a/Dockerfile b/Dockerfileindex 07500fd9e..e4d78da35 100644--- a/Dockerfile+++ b/Dockerfile@@ -94,8 +94,7 @@ RUN --mount=type=cache,target=/root/.cache/uv,id=uv-${TARGETPLATFORM} \echo "Unsupported UV_LOCK_STRATEGY: ${UV_LOCK_STRATEGY}" >&2; \exit 2 \;; \- esac && \- python -c "from importlib.resources import files; p = files('openviking.web_studio').joinpath('dist/index.html'); assert p.is_file(), f'missing Studio bundle: {p}'"+ esac# Stage 4: runtimeFROM python:3.13-slim-trixie@@ -111,6 +110,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \WORKDIR /appCOPY --from=py-builder /app/.venv /app/.venv+RUN /app/.venv/bin/python -I -c "from importlib.util import find_spec; from pathlib import Path; spec = find_spec('openviking.web_studio'); locations = list(spec.submodule_search_locations or ()) if spec else []; root = Path('/app/.venv').resolve(); p = (Path(locations[0]).resolve() / 'dist/index.html').resolve() if len(locations) == 1 else None; valid = p is not None and p.is_file() and p.is_relative_to(root); raise SystemExit(0 if valid else f'missing or misplaced Studio bundle: {p}')"COPY docker/openviking-entrypoint.sh /usr/local/bin/openviking-entrypointCOPY docker/pending_health_server.py /usr/local/bin/openviking-pending-healthRUN mkdir -p /app/.openviking \