Download Dockerfile from Nntttt/APT: direct link, hf CLI and curl.
- Browser
- Download file 399 Bytes
-
https://huggingface.co/spaces/Nntttt/APT/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Nntttt/APT/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Nntttt/APT/resolve/main/Dockerfile
399 Bytes
| 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"] |