fcc6921ddb
Fixes #27, or at least works around it. This deals with the issues mentioned in https://github.com/sgrif/pq-sys/pull/18, and it relies heavily on ideas from @golddranks and @clux.
18 lines
523 B
Docker
18 lines
523 B
Docker
# -*- mode: dockerfile -*-
|
|
#
|
|
# An example Dockerfile showing how to add new static C libraries using
|
|
# musl-gcc.
|
|
|
|
FROM ekidd/rust-musl-builder
|
|
|
|
# Build a static copy of zlib.
|
|
#
|
|
# EXAMPLE ONLY! libz is already included.
|
|
RUN VERS=1.2.11 && \
|
|
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 && \
|
|
cd .. && rm -rf zlib-$VERS.tar.gz zlib-$VERS
|