Download Dockerfile from Nntttt/SST: direct link, hf CLI and curl.
- Browser
- Download file 493 Bytes
-
https://huggingface.co/spaces/Nntttt/SST/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Nntttt/SST/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Nntttt/SST/resolve/main/Dockerfile
493 Bytes
| # 使用官方 n8n 镜像 | |
| FROM n8nio/n8n | |
| # 设置环境变量(这才是正确的语法) | |
| ENV DB_TYPE=postgresdb | |
| ENV DB_POSTGRESDB_HOST=your-db-host | |
| ENV DB_POSTGRESDB_PORT=5432 | |
| # 设置加密密钥(非常重要) | |
| ENV N8N_ENCRYPTION_KEY=your-super-secret-key-here | |
| # 设置主机和 webhook 地址(替换为你自己的空间名称) | |
| ENV N8N_HOST=your-space-name.hf.space | |
| ENV WEBHOOK_URL=https://your-space-name.hf.space | |
| # 暴露端口 | |
| EXPOSE 5678 | |
| # 启动 n8n | |
| CMD ["n8n", "start"] |