fix: do not build from the same container (#434)

Signed-off-by: mudler <mudler@mocaccino.org>
This commit is contained in:
Ettore Di Giacinto 2023-05-30 15:53:37 +02:00 committed by GitHub
parent 49ce24984c
commit 6d71dd7d98
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 52 additions and 2 deletions

View file

@ -1,9 +1,11 @@
#!/bin/bash
set -e
cd /build
if [ "$REBUILD" != "false" ]; then
make rebuild
rm -rf ./local-ai
make build
fi
./local-ai "$@"