]>
Commit | Line | Data |
---|---|---|
3b2f2976 | 1 | FROM ubuntu:17.10 |
5bcae85e SL |
2 | |
3 | RUN apt-get update | |
4 | RUN apt-get install -y --no-install-recommends \ | |
5 | gcc make libc6-dev git curl ca-certificates | |
9e0c209e | 6 | RUN 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 | 20 | ENV PATH=$PATH:/musl-x86_64/bin:/rust/bin |