Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
Download Dockerfile from huggingfacejs/inference-widgets: direct link, hf CLI and curl.
- Browser
- Download file 353 Bytes
-
https://huggingface.co/spaces/huggingfacejs/inference-widgets/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/huggingfacejs/inference-widgets/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/huggingfacejs/inference-widgets/resolve/main/Dockerfile
353 Bytes
| # syntax=docker/dockerfile:1 | |
| # 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:20 | |
| WORKDIR /app | |
| RUN corepack enable | |
| COPY --link --chown=1000 . . | |
| RUN pnpm install | |
| RUN pnpm --filter widgets build | |
| WORKDIR /app/packages/widgets | |
| CMD ["node", "build/index.js"] |