Spaces:
Runtime error
Runtime error
Download Dockerfile from StarrySkyWorld/NeteaseMusicAPI: direct link, hf CLI and curl.
- Browser
- Download file 323 Bytes
-
https://huggingface.co/spaces/StarrySkyWorld/NeteaseMusicAPI/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/StarrySkyWorld/NeteaseMusicAPI/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/StarrySkyWorld/NeteaseMusicAPI/resolve/main/Dockerfile
323 Bytes
| FROM node:20-alpine | |
| WORKDIR /app | |
| # 可选:如果你想固定版本,改成比如 NeteaseCloudMusicApi@4.16.0 | |
| ENV NCM_API_PKG=NeteaseCloudMusicApi | |
| ENV PORT=3000 | |
| ENV HOST=0.0.0.0 | |
| EXPOSE 3000 | |
| # 直接用 npx 拉包并运行 | |
| # --yes: 自动确认安装 | |
| CMD ["sh", "-lc", "npx --yes ${NCM_API_PKG} -p ${PORT} -H ${HOST}"] |