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 (#4299)
Axiomoth402384e21587
diff --git a/.dockerignore b/.dockerignorenew file mode 100644index 000000000..3a2c4403a--- /dev/null+++ b/.dockerignore@@ -0,0 +1,16 @@+# Local development artifacts are not needed by the runtime image and make the+# build context unnecessarily large.+.git+.venv+__pycache__+*.py[cod]+.pytest_cache+.coverage+htmlcov+web-studio/node_modules+web-studio/dist+openviking/web_studio/dist+web-studio/.vite+node_modules+*.log+*.tmpdiff --git a/Dockerfile b/Dockerfileindex 16c11f28f..ef492a857 100644--- a/Dockerfile+++ b/Dockerfile@@ -66,6 +66,10 @@ RUN --mount=type=cache,target=/root/.cache/uv,id=uv-${TARGETPLATFORM} \--mount=type=cache,target=/usr/local/cargo/registry,id=cargo-registry-${TARGETPLATFORM} \--mount=type=cache,target=/usr/local/cargo/git,id=cargo-git-${TARGETPLATFORM} \--mount=type=cache,target=/root/.ccache,id=ccache-${TARGETPLATFORM} \+ # The source checkout may contain a previously generated Studio bundle.+ # Remove it so setup.py rebuilds the SPA from the current TypeScript source+ # instead of silently packaging stale browser code into the image.+ rm -rf openviking/web_studio/dist; \if [ -n "${OPENVIKING_VERSION:-}" ]; then \export SETUPTOOLS_SCM_PRETEND_VERSION_FOR_OPENVIKING="${OPENVIKING_VERSION}"; \elif [ -f openviking/_version.py ]; then \@@ -76,13 +80,13 @@ RUN --mount=type=cache,target=/root/.cache/uv,id=uv-${TARGETPLATFORM} \fi; \case "${UV_LOCK_STRATEGY}" in \locked) \- uv sync --locked --no-editable --extra bot --extra gemini \+ uv sync --locked --no-editable --reinstall-package openviking --extra bot --extra gemini \;; \auto) \if ! uv lock --check; then \uv lock; \fi; \- uv sync --locked --no-editable --extra bot --extra gemini \+ uv sync --locked --no-editable --reinstall-package openviking --extra bot --extra gemini \;; \*) \echo "Unsupported UV_LOCK_STRATEGY: ${UV_LOCK_STRATEGY}" >&2; \@@ -107,6 +111,7 @@ COPY --from=py-builder /app/.venv /app/.venvCOPY docker/openviking-entrypoint.sh /usr/local/bin/openviking-entrypointCOPY docker/pending_health_server.py /usr/local/bin/openviking-pending-healthRUN mkdir -p /app/.openviking \+ && sed -i 's/\r$//' /usr/local/bin/openviking-entrypoint /usr/local/bin/openviking-pending-health \&& chmod +x /usr/local/bin/openviking-entrypoint /usr/local/bin/openviking-pending-healthENV HOME="/app" \PATH="/app/.venv/bin:$PATH" \