fix: update cmake installation script

Meng Zhang 2023-11-05 12:27:38 -08:00
parent 4a44f44529
commit 2f0ee940fb
1 changed files with 4 additions and 6 deletions

View File

@ -9,12 +9,10 @@ ARG BASE_CUDA_RUN_CONTAINER=nvidia/cuda:${CUDA_VERSION}-runtime-ubuntu${UBUNTU_V
FROM ${BASE_CUDA_DEV_CONTAINER} as build FROM ${BASE_CUDA_DEV_CONTAINER} as build
ENV DEBIAN_FRONTEND=noninteractive ENV DEBIAN_FRONTEND=noninteractive
# Use kitware's repo to make sure CMake is newer than 3.17. # Install latest cmake
RUN wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | \ RUN wget -qO - https://apt.kitware.com/kitware-archive.sh | bash -s -- --release focal
gpg --dearmor - | tee /usr/share/keyrings/kitware-archive-keyring.gpg >/dev/null && \
echo 'deb [signed-by=/usr/share/keyrings/kitware-archive-keyring.gpg] https://apt.kitware.com/ubuntu/ focal main' | \ RUN apt-get update && \
tee /etc/apt/sources.list.d/kitware.list >/dev/null && \
apt-get update && \
apt-get install -y --no-install-recommends \ apt-get install -y --no-install-recommends \
curl \ curl \
pkg-config \ pkg-config \