mirror of
https://github.com/kossakovsky/n8n-install.git
synced 2026-03-07 22:33:11 +00:00
n8n v2.0 executes code nodes in a separate task runner container. the runner image (n8nio/runners) doesn't include npm packages like cheerio, axios, moment, lodash - causing "module is disallowed" errors. - add Dockerfile.runner with npm packages for code nodes - rename Dockerfile to Dockerfile.n8n for clarity - update docker-compose.yml to use custom runner build
11 lines
251 B
Docker
11 lines
251 B
Docker
ARG N8N_VERSION=stable
|
|
FROM n8nio/runners:${N8N_VERSION}
|
|
|
|
USER root
|
|
|
|
# Install npm packages that can be used in Code nodes
|
|
# These must match NODE_FUNCTION_ALLOW_EXTERNAL in docker-compose.yml
|
|
RUN npm install -g cheerio axios moment lodash
|
|
|
|
USER node
|