# Use Node.js 20 on a lightweight Alpine image FROM node:20-alpine # Install system dependencies and timezone data RUN apk add --no-cache tzdata # Set timezone (change as needed) ENV TZ=Asia/Yangon ENV GENERIC_TIMEZONE=Asia/Yangon # n8n configuration for Hugging Face Spaces ENV N8N_HOST=0.0.0.0 ENV N8N_PORT=7860 ENV N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=true # Install n8n globally from npm RUN npm install -g n8n # Expose the required port EXPOSE 7860 # Start n8n CMD ["n8n"]