Download Dockerfile from ken4/tmp: direct link, hf CLI and curl.
- Browser
- Download file 398 Bytes
-
https://huggingface.co/spaces/ken4/tmp/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/ken4/tmp/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/ken4/tmp/resolve/main/Dockerfile
398 Bytes
| FROM node:20.19.1 | |
| WORKDIR /app | |
| RUN apt-get update && \ | |
| apt-get install -y --no-install-recommends git ca-certificates && \ | |
| rm -rf /var/lib/apt/lists/* | |
| ARG CACHEBUST=1 | |
| RUN --mount=type=secret,id=GITHUB_REPO,required=true \ | |
| git clone $(cat /run/secrets/GITHUB_REPO) --depth=1 . | |
| RUN yarn install | |
| RUN yarn build | |
| RUN chown -R node:node /app | |
| USER node | |
| EXPOSE 7860 | |
| CMD ["yarn", "start"] |