1
0
mirror of https://github.com/rafacouto/docker-openwrt-builder synced 2025-06-19 13:56:33 +00:00
2016-12-21 06:38:44 +01:00

27 lines
579 B
Docker

FROM debian:jessie
MAINTAINER Rafa Couto <caligari@treboada.net>
RUN apt-get update \
&& apt-get -y install \
git-core build-essential libssl-dev libncurses5-dev unzip \
gawk subversion mercurial wget gettext \
&& rm -rf /var/lib/apt/lists/*
ENV OPENWRT_RELEASE=v15.05.1 \
OPENWRT_TARGET=rpi3 \
WORKDIR=/usr/src/openwrt
ADD config $WORKDIR/target-configs
ADD scripts/* $WORKDIR/docker-scripts
RUN git clone --branch $OPENWRT_RELEASE \
https://github.com/openwrt/openwrt.git $WORKDIR
WORKDIR $WORKDIR
CMD ["$WORKDIR/docker-scripts/build.sh", "$OPENWRT_TARGET"]