Last active
April 4, 2022 18:35
-
-
Save g-maxime/aedcb7d5d765b262abdff889f3d3bd30 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Note: In order to be able to make openssl I found I needed to also
yum install perl-coreas described at https://github.com/openssl/openssl/blob/master/NOTES-Perl.md