Androidonnxfork's picture
Upload folder using huggingface_hub
69c5ed3
raw
history blame
419 Bytes
#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
BUILDROOT=$DIR/..
cd $BUILDROOT
CONTAINER="lowinli98/stable-diffusion-streamlit-onnxquantized" #替换成你的容器名称
VERSION=`git describe --abbrev=0 --tags`
IMAGE_NAME="${CONTAINER}:${VERSION}"
cmd="docker build -t $IMAGE_NAME -f $DIR/dockerfile $BUILDROOT --build-arg HUGGINGFACE_TOKEN=$1"
echo $cmd
eval $cmd
docker push $IMAGE_NAME