Spaces:
Runtime error
Runtime error
Download Dockerfile from BetterAPI/BetterChat_new: direct link, hf CLI and curl.
- Browser
- Download file 383 Bytes
-
https://huggingface.co/spaces/BetterAPI/BetterChat_new/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/BetterAPI/BetterChat_new/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/BetterAPI/BetterChat_new/resolve/main/Dockerfile
383 Bytes
| # read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker | |
| # you will also find guides on how best to write your Dockerfile | |
| FROM node:19 | |
| RUN npm install -g pm2 | |
| WORKDIR /app | |
| COPY --link --chown=1000 . . | |
| RUN npm i | |
| RUN --mount=type=secret,id=DOTENV_LOCAL,dst=.env.local npm run build | |
| CMD pm2 kill | |
| CMD echo $CPU_CORES | |
| CMD pm2 start build/index.js -i $CPU_CORES --no-daemon | |