Building a custom docker image fails at the pnpm build step when building a docker image following the official steps on the github custom image guide. This happens with the repo unmodified and also with changes. Running pnpm build directly works fine and I am able to run pnpm start.
What is the error message (if any)?
n8n-editor-ui:build: ERROR: command finished with error: command (/home/node/packages/editor-ui) pnpm run build exited
If this also helps. I’m running this on macOS Montery.
I’ve tried with my node version set to 18.15 and also 16.20
I’ve also tried with the ARG NODE_VERSION=18
So I did another build which failed then bumped up the memory available to Docker and that got it working, I was just starting to chat internally about it and it looks like a fix had already been merged to resolve the issue… If you pull the latest master changes you should be able to build.