From 39d690bf9330bef7643fd78b0fd680aef477bbd3 Mon Sep 17 00:00:00 2001 From: Nate Emmert Date: Tue, 21 Jul 2026 10:36:53 -0400 Subject: [PATCH] Fix piper: keep all bundled libs, register with ldconfig Co-Authored-By: Claude Sonnet 4.6 --- Dockerfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 020da35..0abb48e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,9 +7,11 @@ RUN apt-get update && apt-get install -y --no-install-recommends wget ca-certifi RUN wget -qO /tmp/piper.tar.gz \ https://github.com/rhasspy/piper/releases/download/2023.11.14-2/piper_linux_x86_64.tar.gz \ - && tar -xzf /tmp/piper.tar.gz -C /tmp \ - && mv /tmp/piper/piper /usr/local/bin/piper \ - && rm -rf /tmp/piper* + && tar -xzf /tmp/piper.tar.gz -C /usr/local/lib \ + && ln -s /usr/local/lib/piper/piper /usr/local/bin/piper \ + && echo /usr/local/lib/piper > /etc/ld.so.conf.d/piper.conf \ + && ldconfig \ + && rm /tmp/piper.tar.gz RUN mkdir -p /app/voices \ && wget -qO /app/voices/en_US-lessac-medium.onnx \