]> git.proxmox.com Git - rustc.git/blame - src/ci/docker/dist-x86_64-musl/Dockerfile
New upstream version 1.19.0+dfsg1
[rustc.git] / src / ci / docker / dist-x86_64-musl / Dockerfile
CommitLineData
8bb4bdeb
XL
1FROM ubuntu:16.04
2
3RUN apt-get update && apt-get install -y --no-install-recommends \
4 g++ \
5 make \
6 file \
7 curl \
8 ca-certificates \
9 python2.7 \
10 git \
11 cmake \
12 xz-utils \
13 sudo \
14 gdb \
15 patch \
16 libssl-dev \
17 pkg-config
18
19WORKDIR /build/
7cac9316 20COPY dist-x86_64-musl/build-musl.sh /build/
8bb4bdeb
XL
21RUN sh /build/build-musl.sh && rm -rf /build
22
23RUN 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 && \
25 rm dumb-init_*.deb
26ENTRYPOINT ["/usr/bin/dumb-init", "--"]
27
28RUN curl -o /usr/local/bin/sccache \
7cac9316 29 https://s3.amazonaws.com/rust-lang-ci/rust-ci-mirror/2017-05-12-sccache-x86_64-unknown-linux-musl && \
8bb4bdeb
XL
30 chmod +x /usr/local/bin/sccache
31
32ENV RUST_CONFIGURE_ARGS \
33 --target=x86_64-unknown-linux-musl \
cc61c64b
XL
34 --musl-root-x86_64=/musl-x86_64 \
35 --enable-extended
8bb4bdeb
XL
36
37# Newer binutils broke things on some vms/distros (i.e., linking against
38# unknown relocs disabled by the following flag), so we need to go out of our
39# way to produce "super compatible" binaries.
40#
41# See: https://github.com/rust-lang/rust/issues/34978
42ENV CFLAGS_x86_64_unknown_linux_musl=-Wa,-mrelax-relocations=no
43
44ENV SCRIPT \
45 python2.7 ../x.py test --target x86_64-unknown-linux-musl && \
46 python2.7 ../x.py dist --target x86_64-unknown-linux-musl