ARG GOLANG_VERSION=1.21.3 ARG CMAKE_VERSION=3.22.1 ARG CUDA_VERSION=11.3.1 FROM --platform=linux/amd64 nvidia/cuda:$CUDA_VERSION-devel-centos7 AS cuda-build-amd64 ARG CMAKE_VERSION RUN yum install -y https://repo.ius.io/ius-release-el7.rpm centos-release-scl \ && yum update -y \ && yum install -y devtoolset-10-gcc devtoolset-10-gcc-c++ git236 ENV PATH /opt/rh/devtoolset-10/root/usr/bin:$PATH ADD https://github.com/Kitware/CMake/releases/download/v$CMAKE_VERSION/cmake-$CMAKE_VERSION-linux-x86_64.tar.gz /tmp/cmake-$CMAKE_VERSION.tar.gz RUN tar -zx -C /usr --strip-components 1