FROM opensuse/leap:15.1 MAINTAINER Scott E. Graves CMD bash ARG CMAKE_VERSION=3.22.2 # Required system packages RUN zypper --non-interactive patch;zypper --non-interactive patch && zypper --non-interactive install \ curl \ make \ git \ fuse \ fuse-devel \ pkgconfig \ patch \ autoconf \ automake \ libtool \ zip \ file \ gzip \ which \ wget \ zlib-devel \ zlib-devel-static \ gcc \ gcc-c++ 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:${PATH}"