FROM centos:8.1.1911 ARG no_check=false ARG no_install=false ARG _libdir=/usr/local/lib64 ARG _docdir=/usr/share/doc RUN yum install -y gcc zlib-devel python3 cmake make unzip zip gzip tar diffutils RUN mkdir src COPY CMakeLists.txt README COPYING.LIB ChangeLog src/ COPY Makefile.am Makefile.in configure.ac configure config.h.in zziplib.spec src/ COPY uses src/uses COPY bins src/bins COPY docs src/docs COPY test src/test COPY SDL src/SDL COPY zzipwrap src/zzipwrap COPY zzip src/zzip RUN mkdir src/build RUN cd src/build && sh ../configure --libdir=$_libdir --with-docdir=$_docdir --disable-static RUN cd src/build && make RUN $no_check || (cd src/build && make check) RUN $no_install || (cd src/build && make install)