Download Dockerfile from api-ix/clover: direct link, hf CLI and curl.
- Browser
- Download file 1.1 kB
-
https://huggingface.co/spaces/api-ix/clover/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/api-ix/clover/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/api-ix/clover/resolve/main/Dockerfile
1.1 kB
| FROM node:24-alpine | |
| ############################################################################### | |
| # 1. Install only necessary packages | |
| ############################################################################### | |
| RUN apk add --no-cache \ | |
| git \ | |
| bash \ | |
| build-base \ | |
| curl \ | |
| wget \ | |
| unzip \ | |
| ca-certificates | |
| ############################################################################### | |
| # 2. Startup script (clone repo at run-time) | |
| ############################################################################### | |
| COPY <<'start.sh' /usr/local/bin/start.sh | |
| #!/usr/bin/env bash | |
| set -e | |
| echo "Cloning $REPO …" | |
| git clone --depth 1 "$REPO" /tmp/app | |
| cd /tmp/app | |
| # Install dependencies without devDependencies | |
| npm install --omit=dev | |
| chmod -R 777 /tmp/app | |
| exec npm start | |
| start.sh | |
| RUN chmod +x /usr/local/bin/start.sh | |
| ############################################################################### | |
| # 3. Container metadata | |
| ############################################################################### | |
| EXPOSE 7860 | |
| CMD ["/usr/local/bin/start.sh"] |