Spaces:
Sleeping
Sleeping
Download Dockerfile from 21GoRun/kimi-bridge: direct link, hf CLI and curl.
- Browser
- Download file 421 Bytes
-
https://huggingface.co/spaces/21GoRun/kimi-bridge/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/21GoRun/kimi-bridge/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/21GoRun/kimi-bridge/resolve/main/Dockerfile
421 Bytes
| FROM node:18-alpine | |
| WORKDIR /app | |
| RUN apk add --no-cache git | |
| RUN git clone https://github.com/xiaoY233/Kimi-Free-API.git . | |
| RUN npm install | |
| RUN npm install mime@3.0.0 | |
| # Physically write the port configuration into the app's root folder | |
| RUN echo "PORT=7860" > .env | |
| RUN npm run build | |
| # Fix Hugging Face permission errors | |
| RUN mkdir -p /app/logs && chmod -R 777 /app | |
| ENV PORT=7860 | |
| EXPOSE 7860 | |
| CMD ["node", "dist/index.js"] |