fix: update cmake version to 3.17+

Meng Zhang 2023-11-05 12:12:16 -08:00
parent 345e304be5
commit b76cd1557f
1 changed files with 6 additions and 1 deletions

View File

@ -9,7 +9,12 @@ ARG BASE_CUDA_RUN_CONTAINER=nvidia/cuda:${CUDA_VERSION}-runtime-ubuntu${UBUNTU_V
FROM ${BASE_CUDA_DEV_CONTAINER} as build
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
# Use kitware's repo to make sure CMake is newer than 3.17.
RUN wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | \
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' | \
tee /etc/apt/sources.list.d/kitware.list >/dev/null && \
apt-get update && \
apt-get install -y --no-install-recommends \
curl \
pkg-config \