Download Dockerfile from Rfym21/ND2API: direct link, hf CLI and curl.
- Browser
- Download file 299 Bytes
-
https://huggingface.co/spaces/Rfym21/ND2API/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Rfym21/ND2API/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Rfym21/ND2API/resolve/main/Dockerfile
299 Bytes
| # 使用指定的基础镜像 | |
| FROM fjiabinc/notdiamond2api | |
| # 设置环境变量 | |
| ENV PORT=7860 \ | |
| AUTH_EMAIL=your_email@example.com \ | |
| AUTH_PASSWORD=your_password \ | |
| AUTH_ENABLED=true \ | |
| AUTH_TOKEN=your_token_here | |
| # 暴露端口 7860 | |
| EXPOSE 7860 | |
| # 启动命令 | |
| CMD ["python", "app.py"] |