Spaces:
Runtime error
Runtime error
Download Dockerfile from SSSIGroup/SSSI-Automation: direct link, hf CLI and curl.
- Browser
- Download file 1.01 kB
-
https://huggingface.co/spaces/SSSIGroup/SSSI-Automation/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/SSSIGroup/SSSI-Automation/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/SSSIGroup/SSSI-Automation/resolve/main/Dockerfile
1.01 kB
| FROM node:20-slim | |
| # Force SQLite | |
| ENV DB_TYPE=sqlite | |
| ENV DB_SQLITE_DATABASE=/home/node/.n8n/database.sqlite | |
| # Disable user system (IMPORTANT) | |
| ENV N8N_USER_MANAGEMENT_DISABLED=true | |
| ENV N8N_DIAGNOSTICS_ENABLED=false | |
| ENV N8N_PERSONALIZATION_ENABLED=false | |
| # Hugging Face config | |
| ENV N8N_PORT=7860 | |
| ENV N8N_HOST=0.0.0.0 | |
| ENV N8N_PROTOCOL=https | |
| ENV WEBHOOK_URL=https://sssigroup-sssi-automation.hf.space/ | |
| ENV N8N_EDITOR_BASE_URL=https://sssigroup-sssi-automation.hf.space/ | |
| ENV N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=false | |
| ENV N8N_BASIC_AUTH_ACTIVE=false | |
| ENV N8N_SECURE_COOKIE=false | |
| # Install n8n | |
| RUN apt-get update && apt-get install -y python3 make g++ && \ | |
| npm install -g n8n@${N8N_VERSION} --omit=dev && \ | |
| apt-get purge -y python3 make g++ && apt-get autoremove -y && \ | |
| rm -rf /var/lib/apt/lists/* | |
| # Create folder FIRST | |
| WORKDIR /home/node | |
| RUN mkdir -p /home/node/.n8n && chown -R 1000:1000 /home/node/.n8n | |
| # NOW safe to remove DB (reset) | |
| RUN rm -f /home/node/.n8n/database.sqlite | |
| USER 1000 | |
| CMD ["n8n", "start"] |