Skip to content

Commit 6db7f55

Browse files
Modify dockerfile to use latest cmake on ubuntu18.04
Summary: Test Plan: Reviewers: Subscribers: Tasks: Tags:
1 parent 0d37f1f commit 6db7f55

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

Dockerfile

+8-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ RUN --mount=type=cache,id=apt-dev,target=/var/cache/apt \
88
build-essential \
99
ca-certificates \
1010
ccache \
11-
cmake \
1211
curl \
1312
wget \
1413
git \
@@ -33,10 +32,16 @@ RUN --mount=type=cache,id=apt-dev,target=/var/cache/apt \
3332
tix-dev \
3433
libgtest-dev \
3534
tk-dev \
36-
libsqlite3-dev && \
35+
libsqlite3-dev \
36+
apt-transport-https \
37+
ca-certificates \
38+
gnupg \
39+
software-properties-common && \
40+
wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | apt-key add - && \
41+
apt-add-repository 'deb https://apt.kitware.com/ubuntu/ bionic main' && \
3742
echo "deb http://security.ubuntu.com/ubuntu focal-security main" >> /etc/apt/sources.list && \
3843
apt update && \
39-
apt install -y binutils && \
44+
apt install -y binutils cmake && \
4045
rm -rf /var/lib/apt/lists/*
4146
RUN /usr/sbin/update-ccache-symlinks
4247
RUN mkdir /opt/ccache && ccache --set-config=cache_dir=/opt/ccache

0 commit comments

Comments
 (0)