FROM centos:7 AS env MAINTAINER Scott E. Graves CMD bash ARG CMAKE_VERSION=3.22.2 # Required system packages USER 0 RUN yum update -y RUN yum install -y centos-release-scl RUN yum install -y devtoolset-8 RUN yum -y install \ wget \ curl \ make \ git \ fuse \ fuse-devel \ autoconf \ automake \ libtool \ patch \ pkgconfig \ zip \ zlib-devel \ zlib-static RUN git config --system user.name "Scott E. Graves" RUN git config --system user.email "scott.e.graves@protonmail.com" RUN wget https://github.com/Kitware/CMake/releases/download/v${CMAKE_VERSION}/cmake-${CMAKE_VERSION}-Linux-x86_64.sh \ -q -O /tmp/cmake-install.sh \ && chmod u+x /tmp/cmake-install.sh \ && mkdir /cmake \ && /tmp/cmake-install.sh --skip-license --prefix=/cmake \ && rm /tmp/cmake-install.sh ENV PATH="/cmake/bin:/opt/rh/devtoolset-8/root/usr/bin:${PATH}"