-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (21 loc) · 816 Bytes
/
Dockerfile
File metadata and controls
25 lines (21 loc) · 816 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
ARG debian_snapshot=buster-20201012
FROM debian/snapshot:${debian_snapshot}
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y apt-utils && \
apt-get install -y build-essential && \
apt-get install -y git && \
apt-get install -y vim && \
apt-get install -y cmake && \
apt-get install -y protobuf-compiler && \
apt-get install -y libzmq3-dev && \
apt-get install -y librocksdb-dev && \
apt-get install -y libgflags-dev && \
apt-get install -y libssl-dev
#install cmake v3.20.4
ADD https://cmake.org/files/v3.20/cmake-3.20.4-linux-x86_64.sh /cmake-3.20.4-linux-x86_64.sh
RUN mkdir /opt/cmake
RUN sh /cmake-3.20.4-linux-x86_64.sh --prefix=/opt/cmake --skip-license
RUN ln -s /opt/cmake/bin/cmake /usr/local/bin/cmake
RUN cmake --version
CMD ["/bin/bash"]