Skip to content

Commit

Permalink
Ensure we use latest cmake version
Browse files Browse the repository at this point in the history
  • Loading branch information
Krzmbrzl committed May 21, 2024
1 parent da48cf4 commit d6f9fde
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,16 @@ RUN apt-get update && apt-get install --no-install-recommends -y \
FROM base as build
ARG DEBIAN_FRONTEND=noninteractive

RUN apt-get update && apt-get install ca-certificates gpg wget

RUN test -f /usr/share/doc/kitware-archive-keyring/copyright || \
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

# Ensure we are using latest cmake
RUN 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

RUN apt-get update && apt-get install --no-install-recommends -y \
git cmake build-essential ca-certificates pkg-config \
libssl-dev \
Expand Down

0 comments on commit d6f9fde

Please sign in to comment.