InvokeAI/docker/build.sh
2023-10-19 11:26:36 -04:00

12 lines
217 B
Bash
Executable File

#!/usr/bin/env bash
set -e
build_args=""
[[ -f ".env" ]] && build_args=$(awk '$1 ~ /\=[^$]/ {print "--build-arg " $0 " "}' .env)
echo "docker compose build args:"
echo $build_args
docker compose build $build_args