Spaces:
Running
Running
Download Dockerfile from Git-Hub/new-api: direct link, hf CLI and curl.
- Browser
- Download file 337 Bytes
-
https://huggingface.co/spaces/Git-Hub/new-api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Git-Hub/new-api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Git-Hub/new-api/resolve/main/Dockerfile
337 Bytes
| FROM calciumion/new-api:latest | |
| ENV PORT=7860 \ | |
| TZ=Asia/Shanghai \ | |
| ERROR_LOG_ENABLED=true \ | |
| BATCH_UPDATE_ENABLED=true \ | |
| NODE_NAME=hf-new-api | |
| EXPOSE 7860 | |
| RUN mkdir -p /data | |
| WORKDIR /data | |
| CMD ["sh", "-c", "echo SQL_DSN configured: ${SQL_DSN:+yes}; echo SESSION_SECRET configured: ${SESSION_SECRET:+yes}; exec /new-api"] | |