mirror of
https://github.com/rafacouto/docker-openwrt-builder
synced 2025-06-07 07:56:13 +00:00
29 lines
594 B
Docker
29 lines
594 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/local/openwrt
|
|
|
|
VOLUME ["$WORKDIR/src"]
|
|
|
|
ADD configs $WORKDIR/configs
|
|
ADD scripts/* $WORKDIR/scripts
|
|
|
|
RUN git clone --branch $OPENWRT_RELEASE \
|
|
https://github.com/openwrt/openwrt.git $WORKDIR/src
|
|
|
|
WORKDIR $WORKDIR/src
|
|
|
|
CMD ["$WORKDIR/scripts/build.sh", "$OPENWRT_TARGET"]
|
|
|
|
|