-
Notifications
You must be signed in to change notification settings - Fork 261
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
FROM rust:slim | ||
|
||
RUN apt-get update \ | ||
&& apt-get install -y --no-install-recommends libclang-dev qemu-system wget make \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN cargo install cargo-binutils | ||
|
||
RUN wget https://musl.cc/aarch64-linux-musl-cross.tgz \ | ||
&& wget https://musl.cc/riscv64-linux-musl-cross.tgz \ | ||
&& wget https://musl.cc/x86_64-linux-musl-cross.tgz \ | ||
&& tar zxf aarch64-linux-musl-cross.tgz \ | ||
&& tar zxf riscv64-linux-musl-cross.tgz \ | ||
&& tar zxf x86_64-linux-musl-cross.tgz \ | ||
&& rm -f *.tgz | ||
|
||
ENV PATH="/x86_64-linux-musl-cross/bin:/aarch64-linux-musl-cross/bin:/riscv64-linux-musl-cross/bin:$PATH" |