• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1FROM ubuntu:22.04
2
3RUN apt-get update && apt-get install -y --no-install-recommends \
4  gcc make libc6-dev git curl ca-certificates \
5  gcc-arm-linux-gnueabihf qemu-user
6
7COPY install-musl.sh /
8RUN sh /install-musl.sh arm
9
10ENV PATH=$PATH:/musl-arm/bin:/rust/bin \
11    CC_arm_unknown_linux_musleabihf=musl-gcc \
12    CARGO_TARGET_ARM_UNKNOWN_LINUX_MUSLEABIHF_LINKER=musl-gcc \
13    CARGO_TARGET_ARM_UNKNOWN_LINUX_MUSLEABIHF_RUNNER="qemu-arm -L /musl-arm" \
14    RUSTFLAGS="-L /musl-arm/lib"
15