rust-musl-builder/Dockerfile.example
Eric Kidd 0d3bf73856 Create initial Dockerfile and README.md
This seems to work fine locally.
2016-04-16 10:00:12 -04:00

16 lines
536 B
Docker

# -*- mode: dockerfile -*-
#
# An example Dockerfile showing how to add new static C libraries using
# musl-gcc.
FROM ekidd/rust-musl-builder:latest
# Build a static copy of zlib.
RUN VERS=1.2.8 && \
mkdir -p /home/rust/libs && cd /home/rust/libs && \
curl -LO http://zlib.net/zlib-$VERS.tar.gz && \
tar xzf zlib-$VERS.tar.gz && cd zlib-$VERS && \
CC=musl-gcc ./configure --static --prefix=/usr/local/musl && \
make && sudo make install && \
rm -rf /home/rust/libs/zlib-$VERS.tar.gz /home/rust/libs/zlib-$VERS