#!/usr/bin/env bash # This script shows how to build the Docker image and push it to ECR # The argument to this script is the image name. This will be used as the image on the local # machine and combined with the account and region to form the repository name for ECR. mode=$1 tag=$2 commit_id=$3 if [ "$mode" = "" ] || [ "$tag" = "" ] || [ "$commit_id" = "" ] then echo "Usage: $0 " exit 1 fi ./build_and_push_inference.sh Dockerfile.inference.from_scratch aigc-webui-inference $mode $tag $commit_id ./build_and_push.sh Dockerfile.dreambooth.from_scratch aigc-webui-dreambooth-training $mode $tag $commit_id