From 69e39e85ddfc8e40999622f11248a7d4fbae9fc5 Mon Sep 17 00:00:00 2001 From: Meng Zhang Date: Sun, 5 Nov 2023 12:32:27 -0800 Subject: [PATCH] fix: update cmake installation script --- Dockerfile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7e646de..6d37928 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,8 +9,6 @@ ARG BASE_CUDA_RUN_CONTAINER=nvidia/cuda:${CUDA_VERSION}-runtime-ubuntu${UBUNTU_V FROM ${BASE_CUDA_DEV_CONTAINER} as build ENV DEBIAN_FRONTEND=noninteractive -# Install latest cmake -RUN wget -qO - https://apt.kitware.com/kitware-archive.sh | bash -s -- --release focal RUN apt-get update && \ apt-get install -y --no-install-recommends \ @@ -19,6 +17,13 @@ RUN apt-get update && \ libssl-dev \ protobuf-compiler \ git \ + && \ + apt-get clean && \ + rm -rf /var/lib/apt/lists/* + +# Install latest cmake +RUN curl https://apt.kitware.com/kitware-archive.sh | bash -s -- --release focal \ + apt-get install -y --no-install-recommends \ cmake \ && \ apt-get clean && \