Hello,
I wonder how you would install external package “on the fly” without the need to create a custom Dockerfile for this.
Actual behavior is to build a custom Docker file but this makes hard to maintain / upgrade n8n since we need to update the sync between the custom Dockerfile and updates on your side.
https://docs.n8n.io/hosting/configuration/#use-built-in-and-external-modules-in-function-nodes
My idea is to to create “on the fly” node_modules with k8s capability initContainer.
This would need to :
- pull official image
- mount the good volume
- npm install my-deps
- lerna …
- npm build
- load the mounted volume to see new npm
- add to env variable.