-
Notifications
You must be signed in to change notification settings - Fork 6
/
Dockerfile
35 lines (32 loc) · 1.34 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
FROM debian:jessie
MAINTAINER Andrew Dunham <[email protected]>
# Install build tools
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get upgrade -yy && \
DEBIAN_FRONTEND=noninteractive apt-get install -yy \
automake \
bison \
build-essential \
curl \
file \
flex \
git \
libtool \
pkg-config \
python \
texinfo \
vim \
wget
# Install musl-cross
RUN mkdir /build && \
cd /build && \
git clone https://github.com/GregorR/musl-cross.git && \
cd musl-cross && \
echo 'GCC_BUILTIN_PREREQS=yes' >> config.sh && \
sed -i -e "s/^MUSL_VERSION=.*\$/MUSL_VERSION=1.1.12/" defs.sh && \
./build.sh && \
cd / && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /build
ENV PATH $PATH:/opt/cross/x86_64-linux-musl/bin
CMD /bin/bash