Spaces:
Runtime error
Runtime error
rai-sant commited on
Commit ·
7379b2e
1
Parent(s): 33b00ee
Update Dockerfile: Change n8n port to 7860 and enable tunnel mode
Browse filesFiles changed (2)
- Dockerfile+36-10
- README.md+7-7
12345678910111213FROM n8nio/n8n:0.231.2USER rootENV N8N_SKIP_SETUP_WIZARD=trueENV NODE_ENV=productionENV N8N_PORT=7860ENV N8N_DISABLE_PRODUCTION_MAIN_PROCESS=false# This is important to prevent the su-exec permission errorENV N8N_USER_MANAGEMENT_DISABLED=trueEXPOSE 7860# Use direct command instead of relying on su-execENTRYPOINT ["node", "/usr/local/lib/node_modules/n8n/bin/n8n", "start"]123456789101112131415161718192021222324252627282930313233343536373839FROM node:18-alpine# Install system dependenciesRUN apk add --no-cache \git \python3 \py3-pip \make \g++ \build-base \cairo-dev \pango-dev \postgresql-client# Set environment variablesENV N8N_HOST=0.0.0.0 \N8N_PORT=7860 \NODE_ENV=production \N8N_ENCRYPTION_KEY=your-secure-generated-key \N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=true# Install n8n globallyRUN npm install -g n8n@1.76.1# Create necessary directoriesRUN mkdir -p /root/.n8n/database \/root/.n8n/config \/root/.n8n/workflows \/root/.n8n/logs \&& chmod -R 700 /root/.n8n# Set working directoryWORKDIR /data# Expose the portEXPOSE 7860# Start n8n with tunnel modeCMD ["n8n", "start", "--tunnel"]
1234567891011---title: n8n Workflow Automationemoji: 🛠️colorFrom: bluecolorTo: greensdk: dockerapp_port: 7860short_description: "Automate workflows with n8n hosted on Hugging Face Spaces."pinned: truesuggested_hardware: cpu-basic---1234567891011---title: N8nemoji: ⚡colorFrom: bluecolorTo: graysdk: dockerpinned: falselicense: mitshort_description: n8n free hosted with supebase---Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
Dockerfile+36-10
README.md+7-7