Dockerfile 427 B

123456789101112
  1. FROM ubuntu:18.04
  2. RUN apt-get update && \
  3. apt-get install -y --no-install-recommends \
  4. gcc libc6-dev ca-certificates \
  5. gcc-mips-linux-gnu libc6-dev-mips-cross \
  6. binfmt-support qemu-user-static qemu-system-mips
  7. ENV CARGO_TARGET_MIPS_UNKNOWN_LINUX_GNU_LINKER=mips-linux-gnu-gcc \
  8. CARGO_TARGET_MIPS_UNKNOWN_LINUX_GNU_RUNNER=qemu-mips-static \
  9. QEMU_LD_PREFIX=/usr/mips-linux-gnu \
  10. RUST_TEST_THREADS=1