docker_demo/03_dockerfile_with_args/Dockerfile

18 lines
603 B
Docker
Raw Permalink Normal View History

2023-10-23 23:47:34 -04:00
FROM ubuntu:22.04
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 \
&& mkdir /usr/bin/cmake \
&& /tmp/cmake-install.sh --skip-license --prefix=/usr/ \
&& rm /tmp/cmake-install.sh