Spaces:
Sleeping
Sleeping
Download Dockerfile from Subham9126/test2: direct link, hf CLI and curl.
- Browser
- Download file 833 Bytes
-
https://huggingface.co/spaces/Subham9126/test2/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Subham9126/test2/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Subham9126/test2/resolve/main/Dockerfile
833 Bytes
| ARG N8N_VERSION=stable | |
| FROM docker.n8n.io/n8nio/n8n:$N8N_VERSION | |
| USER node | |
| # --- THE FIX: SHARED PORT CONFIG --- | |
| ENV N8N_PORT=7860 \ | |
| N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=false \ | |
| # 1. Enable External Mode | |
| N8N_RUNNERS_ENABLED=true \ | |
| N8N_RUNNERS_MODE=external \ | |
| # 2. Tell the Broker to sit INSIDE the main process (Port 0 or same port) | |
| # Setting this to 7860 while N8N_PORT is 7860 causes the crash. | |
| # We set the Broker to listen on the same webserver as the UI. | |
| # 3. CRITICAL: Disable the local 'worker' so it doesn't fight for the port | |
| # --- REST OF CONFIG --- | |
| N8N_RUNNERS_AUTH_TOKEN=test_secret_123 \ | |
| GENERIC_TIMEZONE=Asia/Kolkata \ | |
| TZ=Asia/Kolkata \ | |
| N8N_ENCRYPTION_KEY=experimental_key_999 \ | |
| HOME=/home/node | |
| WORKDIR /home/node | |
| EXPOSE 7860 | |
| ENTRYPOINT ["tini", "--", "n8n"] |