diff --git a/docker/Dockerfile.sf-server b/docker/Dockerfile.sf-server index 59aaabe5c..0d9a5c346 100644 --- a/docker/Dockerfile.sf-server +++ b/docker/Dockerfile.sf-server @@ -85,8 +85,13 @@ COPY --from=build /src/dist /opt/sf/dist COPY --from=build /src/pkg /opt/sf/pkg COPY --from=build /src/src/resources /opt/sf/src/resources COPY --from=build /src/scripts/postinstall.js /src/scripts/link-workspace-packages.cjs /src/scripts/ensure-workspace-builds.cjs /opt/sf/scripts/ -COPY --from=build /src/rust-engine/addon /opt/sf/rust-engine/addon -COPY --from=build /src/rust-engine/npm /opt/sf/rust-engine/npm +# rust-engine native addon intentionally not shipped here — .gitignore +# excludes the .node binaries (lines 87-89) and the build stage doesn't +# install the Rust toolchain. The runtime handles NativeUnavailableError +# with a JS fallback (visibleWidth, parseRoadmapFile, etc.), so the +# server boots and serves API/web traffic. Follow-up: add `rustup` to the +# build stage + `RUN node rust-engine/scripts/build.js --release` to +# ship the platform-specific binary. COPY --from=build /src/web/.next/standalone /opt/sf/web/.next/standalone WORKDIR /workspace