Skip to content

Solution for long term memory for agent coding CLIs and to facilitate handoff between different agent vendors

Rust

fix(docker): include embedded license in source builds

AkitaOnRails5d10b05222bf
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 53751483..1a9a3964 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -237,6 +237,9 @@ version in [`docs/changelog/`](docs/changelog/):
version committed is dropped from the git index, never from disk, by the next
checkpoint. Existing history keeps its old blobs; `docs/lifecycle-ops.md`
explains how an operator can rewrite it. (#1318)
+- Fixed source-built Docker images failing after the plugin renderer began
+ embedding the project license. The builder now copies `LICENSE` before
+ compiling, and the packaging test guards that compile-time input.
## [3.0.0] - 2026-10-13
diff --git a/crates/ai-memory-cli/tests/suite/packaging.rs b/crates/ai-memory-cli/tests/suite/packaging.rs
index 9457e1be..643967b4 100644
--- a/crates/ai-memory-cli/tests/suite/packaging.rs
+++ b/crates/ai-memory-cli/tests/suite/packaging.rs
@@ -359,6 +359,10 @@ fn aur_packages_install_all_native_assets() {
fn docker_source_build_uses_vendored_tailwind() {
let dockerfile = read_repo("docker/Dockerfile");
assert!(dockerfile.contains("cargo build --locked --release -p ai-memory-cli"));
+ assert!(
+ dockerfile.contains("COPY Cargo.toml Cargo.lock rust-toolchain.toml deny.toml LICENSE ./"),
+ "the source builder must copy files embedded by ai-memory-cli"
+ );
assert!(
!dockerfile.contains("TAILWIND"),
"the vendored stylesheet is the default; the image build must not opt into a regeneration"
diff --git a/docker/Dockerfile b/docker/Dockerfile
index 140f8d26..61e0be7f 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -16,7 +16,7 @@ WORKDIR /work
RUN apt-get update \
&& apt-get install -y --no-install-recommends pkg-config build-essential curl ca-certificates \
&& rm -rf /var/lib/apt/lists/*
-COPY Cargo.toml Cargo.lock rust-toolchain.toml deny.toml ./
+COPY Cargo.toml Cargo.lock rust-toolchain.toml deny.toml LICENSE ./
COPY crates ./crates
# `evals/` is a workspace member (off-tree A/B harness, not shipped
# in the image — but Cargo refuses to parse the workspace manifest