Skip to content

Commit 700ae88

Browse files
authored
Merge pull request #385 from Resgrid/develop
RE1-T119 Build fix
2 parents dbc25b1 + 6f6fdf3 commit 700ae88

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

Web/Resgrid.Web.Tts/Dockerfile

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,16 @@ RUN apt-get update \
3131
curl \
3232
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 \
34+
&& curl -fsSL --retry 3 --retry-delay 5 "https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-amd64-static.tar.xz" -o /tmp/ffmpeg.tar.xz \
35+
&& curl -fsSL "https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-amd64-static.tar.xz.md5" -o /tmp/ffmpeg.tar.xz.md5 \
36+
&& echo "$(awk '{print $1}' /tmp/ffmpeg.tar.xz.md5) /tmp/ffmpeg.tar.xz" | md5sum -c - \
37+
&& rm -f /tmp/ffmpeg.tar.xz.md5 \
3538
&& tar -xf /tmp/ffmpeg.tar.xz -C /tmp \
3639
&& mkdir -p /usr/local/bin \
37-
&& cp /tmp/ffmpeg-master-latest-linux64-gpl/bin/ffmpeg /usr/local/bin/ffmpeg \
38-
&& cp /tmp/ffmpeg-master-latest-linux64-gpl/bin/ffprobe /usr/local/bin/ffprobe \
40+
&& ffmpeg_path=$(find /tmp -name 'ffmpeg' -type f -executable -not -path '*/lib/*' -print -quit) \
41+
&& test -n "$ffmpeg_path" && cp "$ffmpeg_path" /usr/local/bin/ffmpeg \
42+
&& ffprobe_path=$(find /tmp -name 'ffprobe' -type f -executable -not -path '*/lib/*' -print -quit) \
43+
&& test -n "$ffprobe_path" && cp "$ffprobe_path" /usr/local/bin/ffprobe \
3944
&& chmod +x /usr/local/bin/ffmpeg /usr/local/bin/ffprobe \
4045
&& rm -rf /tmp/ffmpeg* \
4146
&& mkdir -p /usr/local/share/piper-voices \

0 commit comments

Comments
 (0)