Skip to content

Commit b743c9e

Browse files
committed
Add Dockerfile
1 parent 66e40f5 commit b743c9e

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

Dockerfile

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
FROM gcc:9
2+
3+
RUN curl https://cmake.org/files/v3.17/cmake-3.17.0-Linux-x86_64.sh -o /tmp/curl-install.sh \
4+
&& chmod u+x /tmp/curl-install.sh \
5+
&& mkdir /usr/bin/cmake \
6+
&& /tmp/curl-install.sh --skip-license --prefix=/usr/bin/cmake \
7+
&& rm /tmp/curl-install.sh \
8+
&& curl https://bootstrap.pypa.io/get-pip.py -o /tmp/get-pip.py \
9+
&& python /tmp/get-pip.py --no-wheel \
10+
&& rm /tmp/get-pip.py \
11+
&& pip install gcovr
12+
ENV PATH="/usr/bin/cmake/bin:${PATH}"
13+
RUN curl -Lj0 https://github.com/google/googletest/archive/release-1.10.0.zip -o /tmp/gtest.zip \
14+
&& cd /tmp \
15+
&& unzip gtest.zip \
16+
&& cd googletest-release-1.10.0 \
17+
&& cmake -DBUILD_SHARED_LIBS=ON . \
18+
&& make \
19+
&& make install \
20+
&& cd .. \
21+
&& rm gtest.zip \
22+
&& rm -rf googletest-release-1.10.0 \
23+

0 commit comments

Comments
 (0)