mirror of
https://github.com/mudler/LocalAI.git
synced 2025-05-20 02:24:59 +00:00
feat(entrypoint): optionally prepare extra endpoints (#1405)
entrypoint: optionally prepare extra endpoints Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
This commit is contained in:
parent
b181503c30
commit
3a4fb6fa4b
2 changed files with 20 additions and 1 deletions
|
@ -3,6 +3,16 @@ set -e
|
|||
|
||||
cd /build
|
||||
|
||||
# If we have set EXTRA_BACKENDS, then we need to prepare the backends
|
||||
if [ -n "$EXTRA_BACKENDS" ]; then
|
||||
echo "EXTRA_BACKENDS: $EXTRA_BACKENDS"
|
||||
# Space separated list of backends
|
||||
for backend in $EXTRA_BACKENDS; do
|
||||
echo "Preparing backend: $backend"
|
||||
make -C $backend
|
||||
done
|
||||
fi
|
||||
|
||||
if [ "$REBUILD" != "false" ]; then
|
||||
rm -rf ./local-ai
|
||||
make build -j${BUILD_PARALLELISM:-1}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue