Spaces:
Paused
Paused
| FROM n8nio/n8n:1.65.2 | |
| # Set working directory for n8n data | |
| WORKDIR /data | |
| # Expose n8n's default port | |
| EXPOSE 5678 | |
| # Set environment variables for robust n8n configuration | |
| ENV N8N_HOST=0.0.0.0 | |
| ENV N8N_PORT=5678 | |
| ENV N8N_PROTOCOL=http | |
| # Run in production mode to optimize performance | |
| ENV NODE_ENV=production | |
| # Disable telemetry to reduce resource usage | |
| ENV N8N_DIAGNOSTICS_ENABLED=false | |
| # Enable health check endpoint for Spaces | |
| ENV N8N_HEALTHCHECK_ENABLED=true | |
| # Fix permissions for config file | |
| ENV N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=true | |
| # Increase log level for debugging | |
| ENV N8N_LOG_LEVEL=info | |
| # Ensure SQLite is used (default, no persistence needed) | |
| ENV DB_TYPE=sqlite | |
| ENV DB_SQLITE_VACUUM_ON_STARTUP=true | |
| # Explicitly set entrypoint to n8n binary | |
| ENTRYPOINT ["/usr/local/bin/n8n"] | |
| # Run in foreground mode | |
| CMD ["start", "--frontend"] |