#!/usr/bin/env bash # Build the local AI container image (model is downloaded into the image). set -euo pipefail cd "$(dirname "$0")" [ -f .ai-config ] && [ -f Dockerfile ] || { echo "No Dockerfile/.ai-config yet - run ./setup.sh first." >&2; exit 1; } # shellcheck disable=SC1091 source .ai-config echo "Building $IMAGE_NAME (model: $MODEL) - this downloads the model, may take a while..." docker build -t "$IMAGE_NAME" . echo echo "Done. Next: ./run-ai-image.sh"