]> git.proxmox.com Git - rustc.git/blame - src/liblibc/ci/docker/x86_64-unknown-linux-musl/Dockerfile
New upstream version 1.21.0+dfsg1
[rustc.git] / src / liblibc / ci / docker / x86_64-unknown-linux-musl / Dockerfile
CommitLineData
3b2f2976 1FROM ubuntu:17.10
5bcae85e
SL
2
3RUN apt-get update
4RUN apt-get install -y --no-install-recommends \
5 gcc make libc6-dev git curl ca-certificates
9e0c209e 6RUN curl https://www.musl-libc.org/releases/musl-1.1.15.tar.gz | \
5bcae85e 7 tar xzf - && \
9e0c209e 8 cd musl-1.1.15 && \
5bcae85e
SL
9 ./configure --prefix=/musl-x86_64 && \
10 make install -j4 && \
11 cd .. && \
3b2f2976
XL
12 rm -rf musl-1.1.15 && \
13# Install linux kernel headers sanitized for use with musl
14 curl -L https://github.com/sabotage-linux/kernel-headers/archive/v3.12.6-5.tar.gz | \
15 tar xzf - && \
16 cd kernel-headers-3.12.6-5 && \
17 make ARCH=x86_64 prefix=/musl-x86_64 install -j4 && \
18 cd .. && \
19 rm -rf kernel-headers-3.12.6-5
5bcae85e 20ENV PATH=$PATH:/musl-x86_64/bin:/rust/bin