FROM docker.n8n.io/n8nio/n8n:latest USER root # Fix permissions RUN chown -R node:node /home/node USER node # Explicitly call the node executable and the n8n script ENTRYPOINT [] CMD ["node", "/usr/local/lib/node_modules/n8n/bin/n8n"]