Initial commit
This commit is contained in:
Executable
+13
@@ -0,0 +1,13 @@
|
||||
#!/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"
|
||||
Reference in New Issue
Block a user