diff --git a/.docker/Dockerfile b/.docker/Dockerfile index ae47ae059..30da816a6 100644 --- a/.docker/Dockerfile +++ b/.docker/Dockerfile @@ -3,6 +3,7 @@ FROM nvidia/cuda:12.2.0-devel-ubuntu20.04 ENV OS=ubuntu2004 ENV cudnn_version=8.9.4.25 ENV cuda_version=cuda12.2 +ENV cmake_version=3.27.4 RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y wget software-properties-common @@ -24,9 +25,9 @@ RUN apt-get update && apt-get upgrade -y && \ #RUN wget https://github.com/Kitware/CMake/releases/download/v3.24.2/cmake-3.24.2.tar.gz && \ # tar -xvf cmake-3.24.2.tar.gz && cd cmake-3.24.2 && \ # ./bootstrap && make && make install -RUN wget -nv https://github.com/Kitware/CMake/releases/download/v3.27.2/cmake-3.27.2-linux-x86_64.sh && \ - mkdir /opt/cmake && sh ./cmake-3.27.2-linux-x86_64.sh --skip-license --prefix=/opt/cmake && ln -s /opt/cmake/bin/cmake /usr/bin/cmake && \ - rm cmake-3.27.2-linux-x86_64.sh +RUN wget -nv https://github.com/Kitware/CMake/releases/download/v${cmake_version}/cmake-${cmake_version}-linux-x86_64.sh && \ + mkdir /opt/cmake && sh ./cmake-${cmake_version}-linux-x86_64.sh --skip-license --prefix=/opt/cmake && ln -s /opt/cmake/bin/cmake /usr/bin/cmake && \ + rm cmake-${cmake_version}-linux-x86_64.sh RUN ln -s /usr/bin/make /usr/bin/gmake