blob: 82f370c76412a1c0cc8923fb13e35cd143c4655f (
plain)
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
|
FROM ubuntu:16.04
RUN apt-get -y update \
&& apt-get -y install bzip2 bc cpio g++ make locales patch perl python unzip rsync wget zip \
&& rm -rf /var/lib/apt/lists/*
RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && \
locale-gen
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
RUN useradd -d /home/trimui -m -s /bin/bash -U trimui
RUN ln -s /home/trimui/buildroot/output/host/usr /opt/trimui-toolchain
USER trimui
WORKDIR /home/trimui
ENV BR_VER 2016.05
ENV BR_DIR buildroot-${BR_VER}
ENV BR_TAR ${BR_DIR}.tar.bz2
ENV BR_URL https://buildroot.org/downloads/${BR_TAR}
RUN echo ${BR_DIR} && wget ${BR_URL} && ls -l && tar xf ${BR_TAR} && rm -f ${BR_TAR}
RUN ln -s ${BR_DIR} buildroot
WORKDIR /home/trimui/buildroot
COPY libpng12.patch libpng12.patch
RUN patch -p0 < libpng12.patch
COPY defconfig defconfig
RUN make defconfig BR2_DEFCONFIG=./defconfig && make toolchain libpng sdl sdl_image bzip2
VOLUME /home/trimui/workspace
WORKDIR /home/trimui/workspace
CMD ["/bin/bash"]
|