# Standard Node image jahan npm aur node pehle se installed hain FROM node:18-bullseye-slim # Installing n8n globally RUN npm install -g n8n@latest # Environment variables for Hugging Face ENV PORT=7860 EXPOSE 7860 ENV N8N_PORT=7860 ENV N8N_DATA_FOLDER=/data # Create data directory and set wide permissions RUN mkdir -p /data && chmod -R 777 /data WORKDIR /data # Direct call to global binary path CMD ["/usr/local/bin/n8n", "start"]