The previous build step copied `workspace/code/<demo>.py` into `src/static/bundled-demos/` at image-build time. That failed for some build contexts where `workspace/` wasn't materialised when the RUN ran (cp: cannot stat ... No such file or directory). Since `src/static/bundled-demos/*.py` are version-controlled and ship with `COPY src ./src`, the runtime image already has them. Replace the fragile cp loop with a `diff -q` invariant that fails the build if a canonical demo drifted between `workspace/code/` and `src/static/bundled-demos/`, catching mismatches at build time instead of runtime. Co-authored-by: Cursor <cursoragent@cursor.com>
1.2 KiB
1.2 KiB