Skip to content

World's first open-source enterprise world model.

The image build gets the file the binary embeds (#28)

WaylandYangf08fe3ddbbc6
diff --git a/docker/Dockerfile b/docker/Dockerfile
index 4fe1d741..876b687e 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -14,6 +14,9 @@ RUN apt-get update && apt-get install -y --no-install-recommends pkg-config && r
COPY Cargo.toml Cargo.lock ./
COPY crates/ crates/
COPY migrations/ migrations/
+# docs_corpus.rs 用 include_str! 把产品内文档编进二进制,所以它是后端的源码依赖,
+# 不只是前端资源——漏掉这行,cargo build 直接报 couldn't read。
+COPY web/src/docs/ web/src/docs/
RUN cargo build --release -p utopia-server
# ---- 运行 ----