-
Notifications
You must be signed in to change notification settings - Fork 19
/
Dockerfile
32 lines (26 loc) · 943 Bytes
/
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
FROM debian
RUN echo "locales locales/locales_to_be_generated multiselect en_US.UTF-8 UTF-8" | debconf-set-selections && \
echo "locales locales/default_environment_locale select en_US.UTF-8" | debconf-set-selections && \
apt-get -q update && \
DEBIAN_FRONTEND=noninteractive apt-get install -q -y \
wget \
build-essential \
libncurses-dev \
rsync \
unzip \
bc \
gnupg \
python \
libc6-i386 \
cpio \
locales \
git-core
COPY rootfs /tmp/rootfs
ENV BUILDROOT_VERSION 2016.02
RUN wget -qO- http://buildroot.uclibc.org/downloads/buildroot-$BUILDROOT_VERSION.tar.bz2 | tar xj && \
mv buildroot-$BUILDROOT_VERSION /tmp/buildroot
RUN mkdir -p /tmp/rootfs/usr/bin && \
cd /tmp; wget -qO- https://get.docker.io/builds/Linux/x86_64/docker-latest.tgz | tar xz && \
mv docker/* /tmp/rootfs/usr/bin/
RUN ln -s /tmp/config/buildroot /tmp/buildroot/.config
WORKDIR /tmp/buildroot