workDir=$(cd `dirname $0`; pwd) imagesName=$(basename $workDir | tr "[A-Z]" "[a-z]") docker build -t registry.cn-hangzhou.aliyuncs.com/god-team/client-$imagesName -f $workDir . docker push registry.cn-hangzhou.aliyuncs.com/god-team/client-$imagesName:latest