Building custom n8n image fails on ‘pnpm run build’ stage
ERROR: command finished with error: command (/src/packages/editor-ui) /usr/local/bin/pnpm run build exited (1)
178.3 n8n-editor-ui#build: command (/src/packages/editor-ui) /usr/local/bin/pnpm run build exited (1)
Information on your n8n setup
n8n version: Latest version of Master branch
Database (default: SQLite): default
Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
Operating system: Digital Ocean Droplet: Linux, Ubuntu
I try running pnpm run build from route, and it works. However, when running
‘docker build -t n8n-custom -f docker/images/n8n-custom/Dockerfile .’ from route, it ends up failing (screenshot attached). I’m struggling. Can anyone please help me?
@barn4k Yes, that’s what I thought too (85.55 & 85.56). This does not happen when running ‘npm run build’ from route folder but appears when trying to build the image. However, these files are present in the repository. Do you have any ideas on how to fix this?
I’m using unmodified latest version of n8n github repository.
Considering that custom images have been building without any issues on the CI, I assume there is something broken on your local setup.
Would it be possible for you to push your repo to github, and use the action instead?