Download Dockerfile from PraneshJs/n8n: direct link, hf CLI and curl.
- Browser
- Download file 1.53 kB
-
https://huggingface.co/spaces/PraneshJs/n8n/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/PraneshJs/n8n/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/PraneshJs/n8n/resolve/main/Dockerfile
1.53 kB
| # Use a lightweight Node image | |
| FROM node:24-alpine | |
| # Run as root for setup | |
| USER root | |
| # --- Install required system dependencies --- | |
| RUN apk add --no-cache \ | |
| git \ | |
| python3 \ | |
| py3-pip \ | |
| make \ | |
| g++ \ | |
| build-base \ | |
| cairo-dev \ | |
| pango-dev \ | |
| chromium \ | |
| postgresql-client \ | |
| ffmpeg \ | |
| yt-dlp | |
| # Puppeteer config for n8n | |
| ENV PUPPETEER_SKIP_DOWNLOAD=true | |
| ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser | |
| # --- Install n8n globally --- | |
| RUN npm install -g n8n@latest | |
| # --- Set up directories and permissions --- | |
| RUN mkdir -p /root/.n8n && chmod -R 700 /root/.n8n | |
| # --- Hardcoded n8n + Supabase configuration --- | |
| ENV N8N_HOST=0.0.0.0 | |
| ENV N8N_PORT=7860 | |
| ENV N8N_PROTOCOL=https | |
| ENV N8N_RUNNERS_ENABLED=true | |
| ENV N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=true | |
| ENV WEBHOOK_URL=https://praneshjs-n8n.hf.space | |
| ENV GENERIC_TIMEZONE=Asia/Kolkata | |
| ENV TZ=Asia/Kolkata | |
| # Encryption key (keep safe – don’t change once deployed) | |
| ENV N8N_ENCRYPTION_KEY=a4b0f2369c53c7b748efedfbac38e6b92b7c6b9b1aaecdf1 | |
| # --- Database Connection (Supabase) --- | |
| ENV DB_TYPE=postgresdb | |
| ENV DB_POSTGRESDB_DATABASE=postgres | |
| ENV DB_POSTGRESDB_HOST=aws-1-ap-south-1.pooler.supabase.com | |
| ENV DB_POSTGRESDB_PORT=5432 | |
| ENV DB_POSTGRESDB_USER=postgres.ngkmduatortmunvxncbr | |
| ENV DB_POSTGRESDB_PASSWORD=Pranesh@5264 | |
| ENV DB_POSTGRESDB_SCHEMA=public | |
| ENV DB_POSTGRESDB_SSL_REJECT_UNAUTHORIZED=false | |
| # --- Working directory --- | |
| WORKDIR /root/.n8n | |
| # Wait a few seconds before starting (DB ready delay) | |
| CMD sleep 5 && n8n start | |
| EXPOSE 7860 | |