Spaces:
Runtime error
Runtime error
| # 1. Start with a clean Node.js system | |
| FROM node:18-alpine | |
| # 2. Install n8n manually (This guarantees we know where it is) | |
| RUN npm install -g n8n | |
| # 3. Create a safe directory for your data | |
| WORKDIR /home/node | |
| # 4. Switch to the safe user | |
| USER node | |
| # 5. Disable the permission check that was crashing it | |
| ENV N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=false | |
| # 6. Configure Ports for Hugging Face | |
| ENV N8N_PORT=7860 | |
| ENV N8N_HOST=0.0.0.0 | |
| # 7. Start n8n | |
| CMD ["n8n", "start"] |