3 RUN apt-get update && apt-get install -y --no-install-recommends \
20 COPY build-musl.sh /build/
21 RUN sh /build/build-musl.sh && rm -rf /build
23 RUN curl -OL https://github.com/Yelp/dumb-init/releases/download/v1.2.0/dumb-init_1.2.0_amd64.deb && \
24 dpkg -i dumb-init_*.deb && \
26 ENTRYPOINT ["/usr/bin/dumb-init", "--"]
28 RUN curl -o /usr/local/bin/sccache \
29 https://s3.amazonaws.com/rust-lang-ci/rust-ci-mirror/2017-03-24-sccache-x86_64-unknown-linux-musl && \
30 chmod +x /usr/local/bin/sccache
32 ENV RUST_CONFIGURE_ARGS \
33 --target=x86_64-unknown-linux-musl \
34 --musl-root-x86_64=/musl-x86_64
36 # Newer binutils broke things on some vms/distros (i.e., linking against
37 # unknown relocs disabled by the following flag), so we need to go out of our
38 # way to produce "super compatible" binaries.
40 # See: https://github.com/rust-lang/rust/issues/34978
41 ENV CFLAGS_x86_64_unknown_linux_musl=-Wa,-mrelax-relocations=no
44 python2.7 ../x.py test --target x86_64-unknown-linux-musl && \
45 python2.7 ../x.py dist --target x86_64-unknown-linux-musl