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