forked from dusty-nv/jetson-containers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
24 lines (23 loc) · 1.11 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#---
# name: cmake:apt
# group: build
# depends: build-essential
# notes: upgrade cmake with apt
#---
ARG BASE_IMAGE
FROM ${BASE_IMAGE}
# upgrade cmake via kitware's apt repo - https://apt.kitware.com/
# typically --only-upgrade is used in the apt install, but cmake wasn't previously installed in this container
# previous issue regarding kitware's rotating GPG keys: https://github.com/dusty-nv/jetson-containers/issues/216
RUN set -ex \
&& 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 \
&& echo "deb [signed-by=/usr/share/keyrings/kitware-archive-keyring.gpg] https://apt.kitware.com/ubuntu/ $(lsb_release -cs) main" | tee /etc/apt/sources.list.d/kitware.list >/dev/null \
&& apt-get update \
&& rm /usr/share/keyrings/kitware-archive-keyring.gpg \
&& apt-get install -y --no-install-recommends kitware-archive-keyring \
&& apt-cache policy cmake \
&& apt-get install -y --no-install-recommends cmake \
&& rm -rf /var/lib/apt/lists/* \
&& apt-get clean \
\
&& cmake --version