I would like all my added modules to be installed att startup. I have checked in my .config.json and packages.json files, but running the node-red container on a clean system (without node_modules), the modules does not show up in the modules palette. Is there some way to install these dependenceis automatically? For instance run "npm install" before node-red service is started? As of now, I need to attach to container, run "npm install" manually and restart container.
You need to build your own version of the container. How to do this is described in the README.md for the container.
e.g. a custom Dockerfile like this:
FROM nodered/node-red
RUN npm install node-red-contrib-flightaware