aboutsummaryrefslogtreecommitdiff
path: root/libc/ci/docker/x86_64-unknown-linux-musl/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'libc/ci/docker/x86_64-unknown-linux-musl/Dockerfile')
-rw-r--r--libc/ci/docker/x86_64-unknown-linux-musl/Dockerfile18
1 files changed, 4 insertions, 14 deletions
diff --git a/libc/ci/docker/x86_64-unknown-linux-musl/Dockerfile b/libc/ci/docker/x86_64-unknown-linux-musl/Dockerfile
index 59164d2..06a081b 100644
--- a/libc/ci/docker/x86_64-unknown-linux-musl/Dockerfile
+++ b/libc/ci/docker/x86_64-unknown-linux-musl/Dockerfile
@@ -3,18 +3,8 @@ FROM ubuntu:19.04
RUN apt-get update
RUN apt-get install -y --no-install-recommends \
gcc make libc6-dev git curl ca-certificates
-RUN curl --retry 5 https://www.musl-libc.org/releases/musl-1.1.19.tar.gz | \
- tar xzf - && \
- cd musl-1.1.19 && \
- ./configure --prefix=/musl-x86_64 && \
- make install -j4 && \
- cd .. && \
- rm -rf musl-1.1.19
-# Install linux kernel headers sanitized for use with musl
-RUN curl --retry 5 -L https://github.com/sabotage-linux/kernel-headers/archive/v3.12.6-6.tar.gz | \
- tar xzf - && \
- cd kernel-headers-3.12.6-6 && \
- make ARCH=x86_64 prefix=/musl-x86_64 install -j4 && \
- cd .. && \
- rm -rf kernel-headers-3.12.6-6
+
+COPY install-musl.sh /
+RUN sh /install-musl.sh x86_64
+
ENV PATH=$PATH:/musl-x86_64/bin:/rust/bin