Fix cmake
This commit is contained in:
@@ -6,11 +6,9 @@ ARG TZ="Europe/London"
|
|||||||
RUN apt-get update -y && \
|
RUN apt-get update -y && \
|
||||||
apt-get install -y --no-install-recommends software-properties-common && \
|
apt-get install -y --no-install-recommends software-properties-common && \
|
||||||
add-apt-repository ppa:ubuntu-toolchain-r/test && \
|
add-apt-repository ppa:ubuntu-toolchain-r/test && \
|
||||||
add-apt-repository ppa:george-edison55/cmake-3.x && \
|
|
||||||
apt-get update -y && \
|
apt-get update -y && \
|
||||||
apt-get install -y \
|
apt-get install -y \
|
||||||
build-essential \
|
build-essential \
|
||||||
cmake \
|
|
||||||
gcc-10 \
|
gcc-10 \
|
||||||
git \
|
git \
|
||||||
g++-10 \
|
g++-10 \
|
||||||
@@ -36,6 +34,13 @@ RUN apt-get update -y && \
|
|||||||
&& apt-get clean \
|
&& apt-get clean \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& 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 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
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user