Download Dockerfile from rr1/crusro: direct link, hf CLI and curl.
- Browser
- Download file 329 Bytes
-
https://huggingface.co/spaces/rr1/crusro/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/rr1/crusro/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/rr1/crusro/resolve/main/Dockerfile
329 Bytes
| FROM node:lts-alpine | |
| EXPOSE 3000 | |
| ENV TZ=Asia/Shanghai | |
| WORKDIR /app | |
| RUN apk add git | |
| RUN git clone https://github.com/renqabs/crusro-api.git . | |
| RUN yarn config set registry https://registry.npmmirror.com/ | |
| RUN yarn | |
| RUN sed -i 's/\/v1\/chat\/completions/\/proxies\/v1\/chat\/completions/g' src/index.js | |
| CMD ["npm", "run", "start"] |