FROM i386/ubuntu:12.04 RUN sed -i 's/archive.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list && \ sed -i 's/security.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list RUN echo "dash dash/sh boolean false" | debconf-set-selections && \ DEBIAN_FRONTEND=noninteractive dpkg-reconfigure dash RUN apt-get update && \ DEBIAN_FRONTEND=noninteractive apt-get install -y \ build-essential \ ca-certificates \ flex \ bison \ make \ autoconf \ automake \ libtool \ zlib1g-dev \ git \ subversion \ gettext \ gcc \ gcc-multilib \ binutils \ bzip2 \ python \ perl \ findutils \ grep \ diffutils \ unzip \ gawk \ util-linux \ libz-dev \ libc6-dev \ libncurses-dev \ libncurses5-dev \ file \ rsync \ wget \ vim \ bc \ && apt-get clean RUN ln -s /usr/bin/automake /usr/bin/automake-1.10 && \ ln -s /usr/bin/aclocal /usr/bin/aclocal-1.10 ENV CONFIG_SHELL=/bin/bash COPY . /home/builder/openwrt RUN useradd -m -s /bin/bash builder RUN cd /home/builder/openwrt && \ make -C scripts/config clean && \ rm -f scripts/config/zconf.tab.c scripts/config/lex.yy.c && \ make -C scripts/config conf RUN wget -q -O /etc/ssl/certs/ca-certificates.crt https://curl.se/ca/cacert.pem && \ update-ca-certificates --fresh COPY feeds.conf /home/builder/openwrt/feeds.conf RUN git config --system protocol.file.allow always && \ git config --system url."https://git.openwrt.org/".insteadOf "git://git.openwrt.org/" && \ git config --system url."https://git.openwrt.org/project/luci.git".insteadOf "git://nbd.name/luci.git" && \ git config --system url."https://github.com/openwrt/".insteadOf "git://github.com/openwrt/" RUN cd /home/builder/openwrt && \ ./scripts/feeds update -a && \ ./scripts/feeds install -a RUN chown -R builder:builder /home/builder/openwrt USER builder WORKDIR /home/builder/openwrt CMD ["/bin/bash"]