-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
51 lines (46 loc) · 1.14 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
FROM rust:1.45-stretch as builder
RUN apt-get update && \
apt-get install -y \
binutils-dev \
build-essential \
cmake \
git \
libcurl4-openssl-dev \
libdw-dev \
libiberty-dev \
ninja-build \
python3 \
zlib1g-dev \
;
WORKDIR /root
ENV KCOV=https://github.com/SimonKagstrom/kcov/archive/v38.tar.gz
RUN wget -q $KCOV -O - | tar xz -C ./ --strip-components 1
RUN mkdir build && cd build \
&& cmake -G Ninja .. \
&& cmake --build . --target install
FROM rust:1.45-stretch
RUN apt-get update && \
apt-get install -y \
binutils \
libcurl4-openssl-dev \
zlib1g \
jq \
libdw1 \
&& \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
COPY --from=builder /usr/local/bin/kcov* /usr/local/bin/
COPY --from=builder /usr/local/share/doc/kcov /usr/local/share/doc/kcov
ENV PATH=/root/.cargo/bin:"$PATH"
RUN rustup update \
&& rustup component add clippy \
&& cargo install \
cargo-kcov \
cargo-readme \
cargo-tree \
cargo-outdated \
cargo-tarpaulin \
cargo-bump \
graphql_client_cli \
just \
;