Problem for Adding packages to a docker install

Hello everyone,

I am a new user of n8n and it’s a pleasure to use.

But have a probleme i will like add the Zammad node in a docker image, I trie to follow this topics:
Adding packages to a docker install

dockerfile

FROM n8nio/n8n

RUN npm install -g @digital-boss/n8n-nodes-zammad

and the command :
docker run -it --rm --name n8n -p 5678:5678 -e NODE_FUNCTION_ALLOW_EXTERNAL=* -e NODE_FUNCTION_ALLOW_BUILTIN=* -v ~/.n8n:/root/.n8n n8n-zammad

But When a launch the docker, i haven’t zammad.
Please how can put zammad node in docker( i prefer don’t use a custom image, for easy to follow the offcial image )

Thank for your return

Hey @Haazeel, welcome to the community!

Full disclosure, I have not done this myself yet so I checked with @harshil1712 on this one :smiley:

Additional packages would need to be installed in the same place n8n is installed to which is /usr/local/lib/node_modules/n8n. So you should be able to add it to your custom docker image using a command like RUN cd /usr/local/lib/node_modules/n8n && npm install @digital-boss/n8n-nodes-zammad (instead of the current npm install -g).

1 Like

Thank @MutedJam and @harshil1712 for your help, now that ok, juste some problemes with the node (some fixe high severity)

1 Like