批量构建dockers镜像shell脚本
# !/bin/bash # 指定shell类型
dockerfile="Dockerfile"
length=`cat imageFile.txt | jq '.| length'`
for ((i=0; i<length; i++))
do
if [ -f "$dockerfile" ]; then
rm -rf $dockerfile
fi
imageUrl=`cat imageFile.txt