Skip to content

Commit 0df76ba

Browse files
authored
Merge pull request #383 from Resgrid/develop
RE1-T119 Build fix
2 parents c5bb106 + 08f11cb commit 0df76ba

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

Web/Resgrid.Web.Tts/Dockerfile

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,17 @@ COPY --from=base /etc/passwd /tmp/base-passwd
2626
COPY --from=base /etc/group /tmp/base-group
2727
RUN apt-get update \
2828
&& apt-get install -y --no-install-recommends \
29-
ffmpeg \
3029
libespeak-ng1 \
3130
ca-certificates \
3231
curl \
32+
xz-utils \
3333
&& rm -rf /var/lib/apt/lists/* \
34+
&& curl -fsSL --retry 3 --retry-delay 5 "https://github.com/BtbN/FFmpeg-Builds/releases/download/latest/ffmpeg-master-latest-linux64-gpl.tar.xz" -o /tmp/ffmpeg.tar.xz \
35+
&& tar -xf /tmp/ffmpeg.tar.xz -C /tmp \
36+
&& cp /tmp/ffmpeg-master-latest-linux64-gpl/bin/ffmpeg /usr/local/bin/ffmpeg \
37+
&& cp /tmp/ffmpeg-master-latest-linux64-gpl/bin/ffprobe /usr/local/bin/ffprobe \
38+
&& chmod +x /usr/local/bin/ffmpeg /usr/local/bin/ffprobe \
39+
&& rm -rf /tmp/ffmpeg* \
3440
&& mkdir -p /usr/local/share/piper-voices \
3541
&& curl -fsSL --retry 3 --retry-delay 5 "https://github.com/rhasspy/piper/releases/download/${PIPER_VERSION}/piper_amd64.tar.gz" -o /tmp/piper.tar.gz \
3642
&& tar -xzf /tmp/piper.tar.gz -C /tmp \
@@ -62,7 +68,7 @@ RUN apt-get update \
6268
&& grep appuser /etc/passwd >> /tmp/app-passwd \
6369
&& grep appgroup /etc/group >> /tmp/app-group \
6470
&& mkdir -p /tmp/ttsdeps \
65-
&& for bin in /usr/local/bin/piper /usr/bin/ffmpeg; do \
71+
&& for bin in /usr/local/bin/piper /usr/local/bin/ffmpeg; do \
6672
ldd "$bin" 2>/dev/null | awk '/=>/ {print $3}' >> /tmp/ttsdeps/libs.txt; \
6773
done \
6874
&& find /usr/local/lib -name '*.so*' -type f >> /tmp/ttsdeps/libs.txt \
@@ -74,8 +80,8 @@ WORKDIR /app
7480
COPY --from=publish /usr/local/bin/piper /usr/local/bin/piper
7581
COPY --from=publish /usr/local/share/piper-voices/ /usr/local/share/piper-voices/
7682
COPY --from=publish /usr/share/espeak-ng-data/ /usr/share/espeak-ng-data/
77-
COPY --from=publish /usr/bin/ffmpeg /usr/bin/ffmpeg
78-
COPY --from=publish /usr/bin/ffprobe /usr/bin/ffprobe
83+
COPY --from=publish /usr/local/bin/ffmpeg /usr/local/bin/ffmpeg
84+
COPY --from=publish /usr/local/bin/ffprobe /usr/local/bin/ffprobe
7985
COPY --from=publish /tmp/ttsdeps/ /usr/local/lib/tts/
8086
COPY --from=publish /tmp/app-passwd /etc/passwd
8187
COPY --from=publish /tmp/app-group /etc/group

0 commit comments

Comments
 (0)