Spaces:
Runtime error
Runtime error
Download Dockerfile from SeanStable/newapi: direct link, hf CLI and curl.
- Browser
- Download file 317 Bytes
-
https://huggingface.co/spaces/SeanStable/newapi/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/SeanStable/newapi/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/SeanStable/newapi/resolve/main/Dockerfile
317 Bytes
| # 使用 New API 官方镜像 | |
| FROM calciumion/new-api:latest | |
| # 让 New API 在 HuggingFace 期望的端口上监听(默认 7860) | |
| ENV PORT=7860 | |
| # 设置时区,可按需修改 | |
| ENV TZ=Asia/Shanghai | |
| # 不需要再写 CMD,直接继承镜像默认启动方式 | |
| # 如需调试,可以改成: | |
| # CMD ["./new-api"] |