LocalAI/entrypoint.sh
mudler ef09709c79 fix: split build threads from running threads
This can be particularly problematic when running on kubernetes where
CPU limits can kill the pod.

Signed-off-by: mudler <mudler@localai.io>
2023-06-29 11:15:54 +02:00

11 lines
219 B
Bash
Executable file

#!/bin/bash
set -e
cd /build
if [ "$REBUILD" != "false" ]; then
rm -rf ./local-ai
ESPEAK_DATA=/build/lib/Linux-$(uname -m)/piper_phonemize/lib/espeak-ng-data make build -j${BUILD_PARALLELISM:-1}
fi
./local-ai "$@"