nodered: bake Dashboard 2.0 into Dockerfile for idempotent install

NR's automatic package.json install at container start was slow and
required internet. Move npm install to image build time, preserve the
installed node_modules via an anonymous volume so the bind mount of
./nodered:/data doesn't clobber them.
This commit is contained in:
2026-07-01 01:50:39 -07:00
parent 3f0c85c41b
commit 1ac9ef948b
3 changed files with 40 additions and 3 deletions
+9
View File
@@ -0,0 +1,9 @@
{
"name": "node-red-project",
"description": "Node-RED flows for Klubhaus zigbee-monitor",
"version": "0.0.1",
"private": true,
"dependencies": {
"@flowfuse/node-red-dashboard": "1.30.2"
}
}