1FROM ubuntu:16.04
2
3RUN apt-get update
4RUN apt-get install -y --no-install-recommends \
5  gcc make libc6-dev git curl ca-certificates
6RUN curl https://www.musl-libc.org/releases/musl-1.1.14.tar.gz | \
7    tar xzf - && \
8    cd musl-1.1.14 && \
9    CFLAGS=-m32 ./configure --prefix=/musl-i686 --disable-shared --target=i686 && \
10    make install -j4 && \
11    cd .. && \
12    rm -rf musl-1.1.14
13ENV PATH=$PATH:/musl-i686/bin:/rust/bin
14