From 7c6fecf13d04f9bec65ac405b3a044c644fd2538 Mon Sep 17 00:00:00 2001 From: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com> Date: Sun, 19 Dec 2021 16:46:47 -0500 Subject: [PATCH] Fix cmake --- scripts/Dockerfile-ubuntu_18_04 | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/scripts/Dockerfile-ubuntu_18_04 b/scripts/Dockerfile-ubuntu_18_04 index c4701312..5e12f448 100644 --- a/scripts/Dockerfile-ubuntu_18_04 +++ b/scripts/Dockerfile-ubuntu_18_04 @@ -6,11 +6,9 @@ ARG TZ="Europe/London" RUN apt-get update -y && \ apt-get install -y --no-install-recommends software-properties-common && \ add-apt-repository ppa:ubuntu-toolchain-r/test && \ - add-apt-repository ppa:george-edison55/cmake-3.x && \ apt-get update -y && \ apt-get install -y \ build-essential \ - cmake \ gcc-10 \ git \ g++-10 \ @@ -36,6 +34,13 @@ RUN apt-get update -y && \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* +RUN wget https://github.com/Kitware/CMake/releases/download/v3.22.1/cmake-3.22.1.tar.gz && \ + tar -zxvf cmake-3.22.1.tar.gz && \ + cd cmake-3.22.1 && \ + ./bootstrap && \ + make && \ + make install + RUN cp /usr/bin/gcc-10 /usr/bin/gcc && cp /usr/bin/g++-10 /usr/bin/gcc-10 RUN wget https://developer.download.nvidia.com/compute/cuda/11.4.2/local_installers/cuda_11.4.2_470.57.02_linux.run --progress=bar:force:noscroll -q --show-progress -O /root/cuda.run && chmod a+x /root/cuda.run