-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
get cmake 3.22 when building on ubuntu 20 (#539)
- Loading branch information
1 parent
cb52eb0
commit 3cd3a15
Showing
1 changed file
with
8 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
ARG CMAKE_VERSION="3.22.3" | ||
|
||
FROM ubuntu:focal | ||
|
||
ARG CMAKE_VERSION | ||
|
||
LABEL org.opencontainers.image.authors="[email protected],[email protected]" | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
@@ -12,7 +16,6 @@ WORKDIR /root/ | |
RUN apt-get -y update \ | ||
&& apt-get -y install \ | ||
build-essential \ | ||
cmake \ | ||
curl \ | ||
doxygen \ | ||
git \ | ||
|
@@ -25,5 +28,9 @@ RUN apt-get -y update \ | |
libssl-dev \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN curl -L https://cmake.org/files/v${CMAKE_VERSION%.*}/cmake-${CMAKE_VERSION}-linux-x86_64.sh -o cmake.sh \ | ||
&& (bash cmake.sh --skip-license --prefix=/usr/local) \ | ||
&& rm cmake.sh | ||
|
||
COPY ./entrypoint.sh /root/ | ||
ENTRYPOINT [ "/root/entrypoint.sh" ] |