Download build_and_push_docker_dev from comdoleger/ai-toolkit: direct link, hf CLI and curl.
- Browser
- Download file 575 Bytes
-
https://huggingface.co/comdoleger/ai-toolkit/resolve/66f0eded207fb94717975837b4ec03ff613e261d/build_and_push_docker_dev
- Command line
-
hf download hf://comdoleger/ai-toolkit@66f0eded207fb94717975837b4ec03ff613e261d/build_and_push_docker_dev
-
curl -L -o build_and_push_docker_dev https://huggingface.co/comdoleger/ai-toolkit/resolve/66f0eded207fb94717975837b4ec03ff613e261d/build_and_push_docker_dev
575 Bytes
| VERSION=dev | |
| GIT_COMMIT=dev | |
| echo "Docker builds from the repo, not this dir. Make sure changes are pushed to the repo." | |
| echo "Building version: $VERSION" | |
| # wait 2 seconds | |
| sleep 2 | |
| # Build the image with cache busting | |
| docker build --build-arg CACHEBUST=$(date +%s) -t aitoolkit:$VERSION -f docker/Dockerfile . | |
| # Tag with version and latest | |
| docker tag aitoolkit:$VERSION ostris/aitoolkit:$VERSION | |
| # Push both tags | |
| echo "Pushing images to Docker Hub..." | |
| docker push ostris/aitoolkit:$VERSION | |
| echo "Successfully built and pushed ostris/aitoolkit:$VERSION" |