Download Dockerfile from numshot/cdn: direct link, hf CLI and curl.
- Browser
- Download file 440 Bytes
-
https://huggingface.co/spaces/numshot/cdn/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/numshot/cdn/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/numshot/cdn/resolve/main/Dockerfile
440 Bytes
| FROM node:20.18.1 | |
| ENV PATH="/home/user/.local/bin:$PATH" | |
| RUN apt-get update && \ | |
| apt-get install -y && \ | |
| rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| # ARG CACHEBUST=$(date +%s) | |
| ARG CACHEBUST=1 | |
| RUN --mount=type=secret,id=GITHUB_REPO,required=true \ | |
| git clone -b uploader --depth=1 $(cat /run/secrets/GITHUB_REPO) . | |
| RUN echo $(date) && npm install | |
| RUN chown -R node:node /app | |
| USER node | |
| EXPOSE 7860 | |
| CMD ["node", "index.js"] |