Skip to content

Instantly share code, notes, and snippets.

@g-maxime
Last active April 4, 2022 18:35
Show Gist options
  • Select an option

  • Save g-maxime/aedcb7d5d765b262abdff889f3d3bd30 to your computer and use it in GitHub Desktop.

Select an option

Save g-maxime/aedcb7d5d765b262abdff889f3d3bd30 to your computer and use it in GitHub Desktop.
FROM amazonlinux:2
RUN yum -y update && \
yum -y groupinstall -y 'Development Tools' && \
yum -y install git zlib-devel perl-core
RUN git clone --depth=1 https://github.com/openssl/openssl && \
(cd openssl && ./config no-shared --prefix=$(pwd)/usr && make install)
RUN git clone --depth=1 https://github.com/curl/curl && \
(cd curl && autoreconf -if && ./configure --enable-static --disable-shared --with-ssl=$(pwd)/../openssl/usr --prefix=$(pwd)/usr && make install)
RUN curl -LO https://old.mediaarea.net/download/binary/mediainfo/19.09/MediaInfo_CLI_19.09_GNU_FromSource.tar.xz && \
tar -xf MediaInfo_CLI_19.09_GNU_FromSource.tar.xz && \
(cd MediaInfo_CLI_GNU_FromSource && ./CLI_Compile.sh --enable-staticlibs --with-libcurl=$(pwd)/../curl/usr)
ENTRYPOINT ["./MediaInfo_CLI_GNU_FromSource/MediaInfo/Project/GNU/CLI/mediainfo"]
@marklassau
Copy link

Note: In order to be able to make openssl I found I needed to also yum install perl-core as described at https://github.com/openssl/openssl/blob/master/NOTES-Perl.md

on Linux distributions based on RPMs, you will need to install perl-core rather than just perl.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment