Download Dockerfile from amangs/n8n: direct link, hf CLI and curl.
- Browser
- Download file 2.06 kB
-
https://huggingface.co/spaces/amangs/n8n/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/amangs/n8n/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/amangs/n8n/resolve/main/Dockerfile
2.06 kB
| FROM node:24-bookworm-slim | |
| USER root | |
| # System Dependencies | |
| RUN apt-get update \ | |
| && apt-get install -y --no-install-recommends \ | |
| ca-certificates \ | |
| git \ | |
| curl \ | |
| unzip \ | |
| python3 \ | |
| build-essential \ | |
| g++ \ | |
| libcairo2-dev \ | |
| libpango1.0-dev \ | |
| libcairo2 \ | |
| libpango-1.0-0 \ | |
| libpangocairo-1.0-0 \ | |
| python3-pip \ | |
| postgresql-client \ | |
| libatk-bridge2.0-0 \ | |
| libx11-xcb1 \ | |
| libxcomposite1 \ | |
| libxdamage1 \ | |
| libxrandr2 \ | |
| libgbm1 \ | |
| libasound2 \ | |
| libxshmfence1 \ | |
| libenchant-2-2 \ | |
| libsecret-1-0 \ | |
| libhyphen0 \ | |
| libmanette-0.2-0 \ | |
| libunwind8 \ | |
| libdw1 \ | |
| libegl1 \ | |
| libgudev-1.0-0 \ | |
| libgles2 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Base Environment (non-sensitive defaults; credentials/database/keys go in Space Secrets) | |
| ENV N8N_USER_FOLDER=/home/node/.n8n \ | |
| N8N_CUSTOM_EXTENSIONS=/home/node/.n8n/nodes \ | |
| NODE_ENV=production \ | |
| DEBIAN_FRONTEND=noninteractive \ | |
| NODE_FUNCTION_ALLOW_BUILTIN=* \ | |
| NODE_FUNCTION_ALLOW_EXTERNAL=* \ | |
| NODE_OPTIONS="--no-deprecation" \ | |
| N8N_RUNNERS_ENABLED=false \ | |
| N8N_UNVERIFIED_PACKAGES_ENABLED=true \ | |
| N8N_RUNNERS_TASK_TIMEOUT=300 \ | |
| N8N_COMPRESSION_NODE_MAX_DECOMPRESSED_SIZE_BYTES=2147483648 \ | |
| N8N_COMPRESSION_NODE_MAX_ZIP_ENTRIES=5000 | |
| EXPOSE 7860 5678 5679 | |
| # Prepare user directories | |
| RUN mkdir -p /home/node/.n8n/nodes \ | |
| && chown -R node:node /home/node/.n8n | |
| # Install n8n globally | |
| RUN npm install -g --unsafe-perm n8n@latest pnpm | |
| # Pre-install community extensions | |
| RUN cd /home/node/.n8n/nodes \ | |
| && npm init -y \ | |
| && npm --unsafe-perm install --no-audit --no-fund \ | |
| @typesafe-ai/n8n-nodes-typesafe-ai \ | |
| @devlikeapro/n8n-nodes-waha \ | |
| @aldinokemal2104/n8n-nodes-gowa \ | |
| n8n-nodes-cheerio-html-parser \ | |
| n8n-nodes-evolution-api-english \ | |
| n8n-nodes-chatery-whatsapp \ | |
| && chown -R node:node /home/node/.n8n | |
| # Add startup runner | |
| COPY --chown=node:node start.sh /home/node/start.sh | |
| RUN chmod +x /home/node/start.sh | |
| USER node | |
| WORKDIR /home/node | |
| CMD ["/home/node/start.sh"] | |