Download Dockerfile from kavion/temp: direct link, hf CLI and curl.
- Browser
- Download file 299 Bytes
-
https://huggingface.co/spaces/kavion/temp/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/kavion/temp/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/kavion/temp/resolve/main/Dockerfile
299 Bytes
| FROM node:20 | |
| # Tambahkan arg agar cache invalid | |
| ARG CACHEBUST=1 | |
| WORKDIR /app | |
| # Clone selalu fresh | |
| RUN --mount=type=secret,id=GITHUB_REPO,required=true \ | |
| git clone $(cat /run/secrets/GITHUB_REPO) /app | |
| RUN npm install | |
| RUN chown -R node:node /app | |
| USER node | |
| EXPOSE 7860 | |
| CMD ["npm", "start"] | |