How to build own image with custom node modules?

Hi @brewoutlay, I am very sorry you’re having trouble!

In general, I think you can even leave out the final line and should be good, seeing you’re installing the modules globally anyway.

I just tested the below Dockerfile:

FROM n8nio/n8n:1.1.1
USER root
RUN npm install -g hello-world-npm

This works fine in the Code node:

Seeing you your n8n instance doesn’t start, perhaps you can share your server log to see which error exactly it is throwing?

1 Like