Portal app-shell as a busybox target, git without perl, quieter first start
The portal's copy of the dashboard is the `appshell` target of backend/Dockerfile (18 MB instead of the 252 MB nginx image); the nginx frontend Dockerfile, its confs and csp.check.ts are gone, since the app and the hub both hash the CSP from the index.html they serve. The runtime image copies the 4 MB git binary alone: the store's init, add, commit, gc and rev-parse are builtins, and a build-time round trip fails the build if that ever changes. About 100 MB of perl and helpers less. The bundled Redis's overcommit warning and FastMCP's lifespan warning no longer greet every `docker logs`.
This commit is contained in:
+1
-1
@@ -3,7 +3,7 @@
|
||||
# copies under frontend/ and backend/ were therefore never consulted, and the
|
||||
# host's stale build outputs and node_modules were shipped into every build.
|
||||
#
|
||||
# Keep `package.json` and `bun.lock` at this root: frontend/Dockerfile copies
|
||||
# Keep `package.json` and `bun.lock` at this root: backend/Dockerfile copies
|
||||
# them before the workspace install.
|
||||
|
||||
# Build outputs — regenerated inside the image.
|
||||
|
||||
Reference in New Issue
Block a user