fix(initializer): do select backends that exist (#2694)

we were not checking if the binary exists before picking these up from
the asset dir.

Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
This commit is contained in:
Ettore Di Giacinto
2024-07-01 22:50:36 +02:00
committed by GitHub
parent bd2f95c130
commit e591ff2e74
2 changed files with 32 additions and 9 deletions

View File

@@ -282,6 +282,8 @@ COPY --from=grpc /opt/grpc /usr/local
# Rebuild with defaults backends
WORKDIR /build
## Build the binary
RUN make build
RUN if [ ! -d "/build/sources/go-piper/piper-phonemize/pi/lib/" ]; then \