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