-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathDockerfile
33 lines (27 loc) · 1.11 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
FROM debian:7
MAINTAINER Bilge <bilge@scriptfusion.com>
WORKDIR /root
# Install dependencies.
RUN apt-get update && DEBIAN_FRONTEND=noninteractive\
apt-get install -y build-essential gperf bison flex texinfo wget gawk libtool automake libncurses5-dev help2man\
ca-certificates
# Download and compile crosstool-NG.
RUN wget http://crosstool-ng.org/download/crosstool-ng/crosstool-ng-1.22.0.tar.xz 2>&1 &&\
tar xf crosstool-ng-*.tar* &&\
cd crosstool-ng &&\
./configure && make && make install &&\
rm -rf ../crosstool-ng*
# Download and unpack uClibc.
RUN wget http://downloads.uclibc-ng.org/releases/1.0.9/uClibc-ng-1.0.9.tar.xz 2>&1 &&\
tar xf uClibc-*.tar* &&\
rm *.tar*
# Internal wiring.
RUN mkdir crosstool-NG /etc/crosstool-ng /etc/uclibc &&\
ln -s uClibc-* uClibc &&\
ln -s /root/crosstool-NG/.config /etc/crosstool-ng/crosstool-ng.conf &&\
ln -s /root/uClibc/.config /etc/uclibc/uclibc.conf
COPY in/toolchain-build /usr/local/bin/
COPY in/crosstool-configure /usr/local/bin/
COPY in/uclibc-configure /usr/local/bin/
COPY in/crosstool-ng.conf /root/crosstool-NG/.config
COPY in/uclibc.conf /root/uClibc/.config