forked from andrew-d/docker-musl-cross
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
46 lines (37 loc) · 1.62 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
36
37
38
39
40
41
42
43
44
45
46
FROM debian:jessie
# Upstream maintainer Andrew Dunham <[email protected]>
# Maintainer of this fork is Lisa Seelye
MAINTAINER Lisa Seelye <[email protected]>
# Build this version.
# This is 'magic' for publishing too.
ENV MUSL_VERSION=1.1.20
# 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/lisa/musl-cross.git && \
cd musl-cross && \
echo 'GCC_BUILTIN_PREREQS=yes' >> config.sh && \
sed -i -e "s/^MUSL_VERSION=.*\$/MUSL_VERSION=${MUSL_VERSION}/" 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