Download Dockerfile from rynekoo/typeflow: direct link, hf CLI and curl.
- Browser
- Download file 423 Bytes
-
https://huggingface.co/spaces/rynekoo/typeflow/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/rynekoo/typeflow/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/rynekoo/typeflow/resolve/main/Dockerfile
423 Bytes
| FROM node:latest | |
| WORKDIR /app | |
| RUN apt-get update && \ | |
| apt-get install -y git && \ | |
| rm -rf /var/lib/apt/lists/* | |
| RUN --mount=type=secret,id=GITHUB_TOKEN,mode=0444 \ | |
| --mount=type=secret,id=GITHUB_REPO,mode=0444 \ | |
| git clone https://$(cat /run/secrets/GITHUB_TOKEN)@github.com/$(cat /run/secrets/GITHUB_REPO).git /app | |
| COPY package*.json ./ | |
| RUN npm install | |
| COPY . . | |
| EXPOSE 7860 | |
| CMD ["node", "index.js"] |