Download scripts/render/build.sh from minhvh/tool: direct link, hf CLI and curl.
- Browser
- Download file 504 Bytes
-
https://huggingface.co/spaces/minhvh/tool/resolve/main/scripts/render/build.sh
- Command line
-
hf download hf://spaces/minhvh/tool/scripts/render/build.sh
-
curl -L -o build.sh https://huggingface.co/spaces/minhvh/tool/resolve/main/scripts/render/build.sh
504 Bytes
| set -e | |
| IMAGE_NAME="render" | |
| IMAGE_TAG="latest" | |
| OWNER="tokhacnhi" | |
| REPO="render" | |
| GHCR_IMAGE="ghcr.io/$OWNER/$REPO/$IMAGE_NAME:$IMAGE_TAG" | |
| DOCKER="/Applications/Docker.app/Contents/Resources/bin/docker" | |
| DOCKERFILE="dockerbox/render/Dockerfile" | |
| # ----- | |
| $DOCKER rmi "$IMAGE_NAME:$IMAGE_TAG" || true | |
| $DOCKER rmi "$GHCR_IMAGE" || true | |
| $DOCKER build --platform=linux/amd64 -t "$IMAGE_NAME:$IMAGE_TAG" -f "$DOCKERFILE" . | |
| $DOCKER tag "$IMAGE_NAME:$IMAGE_TAG" "$GHCR_IMAGE" | |
| $DOCKER push "$GHCR_IMAGE" |