File tree 1 file changed +9
-3
lines changed 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -65,13 +65,19 @@ RUN apt-get update \
65
65
66
66
# Install the Rust toolchain
67
67
#
68
- RUN curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain "$RUST_TOOLCHAIN" \
68
+ RUN mkdir "$TMP_BUILD_DIR" \
69
+ && curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain "$RUST_TOOLCHAIN" \
69
70
&& rustup target add aarch64-unknown-linux-musl \
71
+ && cd "$TMP_BUILD_DIR" \
72
+ && cargo install cargo-kcov \
73
+ && cargo kcov --print-install-kcov-sh | sh \
70
74
&& rm -rf "$CARGO_HOME/registry" \
71
75
&& ln -s "$CARGO_REGISTRY_DIR" "$CARGO_HOME/registry" \
72
76
&& rm -rf "$CARGO_HOME/git" \
73
- && ln -s "$CARGO_GIT_REGISTRY_DIR" "$CARGO_HOME/git"
74
- #
77
+ && ln -s "$CARGO_GIT_REGISTRY_DIR" "$CARGO_HOME/git" \
78
+ && cd / \
79
+ && rm -rf "$TMP_BUILD_DIR"
80
+
75
81
# Add the tini init binary.
76
82
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION_TAG}/tini-static-arm64 /sbin/tini
77
83
RUN chmod +x /sbin/tini
You can’t perform that action at this time.
0 commit comments