N8n-node-dev build issue with a file

Yes that is possible but you would then have to build your own docker image. One that extends the n8n base one and additionally installs your nodes.

The Dockerfile would then look like this:

FROM n8nio/n8n:latest

RUN npm install -g your-custom-node-module

You can build it with:

docker build -t my-custom-image .