Docker Community Forums

Share and learn in the Docker community.

Install mediainfo last version

Hello,
I try and add install mediainfo library (not CLI)

Here is my (wrong) script inside dockerfile:

ARG MEDIAINFO_VER=19.04
RUN apk add -t build-dependencies
build-base
git
RUN cd /tmp
&& wget -q http://mediaarea.net/download/binary/mediainfo/{MEDIAINFO_VER}/MediaInfo_CLI_{MEDIAINFO_VER}_GNU_FromSource.tar.gz
&& wget -q http://mediaarea.net/download/binary/libmediainfo0/{MEDIAINFO_VER}/MediaInfo_DLL_{MEDIAINFO_VER}GNU_FromSource.tar.gz
&& tar xzf MediaInfo_CLI
{MEDIAINFO_VER}_GNU_FromSource.tar.gz \ && tar xzf MediaInfo_DLL_{MEDIAINFO_VER}_GNU_FromSource.tar.gz
&& cd /tmp/MediaInfo_CLI_GNU_FromSource && ./CLI_Compile.sh
&& cd /tmp/MediaInfo_CLI_GNU_FromSource/MediaInfo/Project/GNU/CLI && make install
&& cd /tmp/MediaInfo_DLL_GNU_FromSource && ./SO_Compile.sh
&& cd /tmp/MediaInfo_DLL_GNU_FromSource/ZenLib/Project/GNU/Library && make install
&& cd /tmp/MediaInfo_DLL_GNU_FromSource/MediaInfoLib/Project/GNU/Library && make install
&& strip -s /usr/local/bin/mediainfo
&& ln -sf /usr/local/lib/libzen.so.0.0.0 /usr/lib/libzen.so.0.0.0
&& ln -sf /usr/local/lib/libmediainfo.so.0.0.0 /usr/lib/libmediainfo.so.0.0.0
&& ln -sf /usr/local/bin/mediainfo /usr/bin/mediainfo
&& apk del build-dependencies
&& rm -rf /var/cache/apk/* /tmp/*

What is wrong and what can i remove for that? I only want to install library, not CLI.

Regards,
Fook