17 lines
579 B
Docker
17 lines
579 B
Docker
FROM ubuntu:22.04 AS base
|
|
|
|
RUN apt update \
|
|
&& apt install -yq --no-install-recommends \
|
|
wget \
|
|
tar \
|
|
xz-utils \
|
|
ca-certificates \
|
|
&& rm -rf /var/lib/apt/list
|
|
|
|
ARG CMAKE_VERSION=3.16.5
|
|
RUN wget https://github.com/Kitware/CMake/releases/download/v${CMAKE_VERSION}/cmake-${CMAKE_VERSION}-Linux-x86_64.sh \
|
|
-q --no-verbose --show-progress --progress=bar:force:noscroll -O /tmp/cmake-install.sh \
|
|
&& chmod u+x /tmp/cmake-install.sh \
|
|
&& /tmp/cmake-install.sh --skip-license --prefix=/usr/ \
|
|
&& rm /tmp/cmake-install.sh
|