Use pre-built musl-tools package

This commit is contained in:
Eric Kidd 2016-11-19 08:50:23 -05:00
parent 1bf7dc854e
commit 4bbe14e5cb

View file

@ -16,6 +16,7 @@ RUN apt-get update && \
curl \ curl \
file \ file \
git \ git \
musl-tools \
sudo \ sudo \
xutils-dev \ xutils-dev \
&& \ && \
@ -48,12 +49,6 @@ ADD cargo-config.toml /home/rust/.cargo/config
# clean up when you're done. # clean up when you're done.
WORKDIR /home/rust/libs WORKDIR /home/rust/libs
# Build the musl-libc toolchain, which installs itself in /usr/local/musl.
RUN sudo chown rust:rust /home/rust/libs && \
git clone git://git.musl-libc.org/musl && cd musl && \
./configure && make && sudo make install && \
cd .. && rm -rf musl
# Build a static library version of OpenSSL using musl-libc. This is # Build a static library version of OpenSSL using musl-libc. This is
# needed by the popular Rust `hyper` crate. # needed by the popular Rust `hyper` crate.
RUN VERS=1.0.2g && \ RUN VERS=1.0.2g && \