File size: 419 Bytes
40588a2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/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