forked from Sysdeploy/openwrt
35 lines
918 B
Docker
35 lines
918 B
Docker
FROM ubuntu:focal
|
|
|
|
ENV OPENWRT_VERSION=22.03.2
|
|
|
|
RUN apt -y update
|
|
|
|
RUN DEBIAN_FRONTEND=noninteractive TZ=UTC \
|
|
apt -yq install \
|
|
build-essential rsync git-core subversion mercurial libssl-dev \
|
|
libncurses5-dev unzip gawk zlib1g-dev libncursesw5-dev zlib1g-dev \
|
|
gettext xsltproc wget unzip python python3-distutils rxvt-unicode
|
|
|
|
RUN git clone https://git.openwrt.org/openwrt/openwrt.git
|
|
RUN cd openwrt && git checkout v${OPENWRT_VERSION}
|
|
|
|
RUN wget -qP /openwrt \
|
|
"https://downloads.openwrt.org/releases/${OPENWRT_VERSION}/targets/bcm27xx/bcm2711/config.buildinfo"
|
|
|
|
RUN cd /openwrt && cp config.buildinfo .config && make defconfig
|
|
|
|
ENV FORCE_UNSAFE_CONFIGURE=1
|
|
|
|
RUN cd /openwrt && make tools/install
|
|
RUN cd /openwrt && make toolchain/install
|
|
|
|
RUN cd /openwrt && make download
|
|
RUN cd /openwrt && make world
|
|
|
|
RUN useradd -m -U -u 999 buildbot
|
|
RUN chown -R buildbot.buildbot /openwrt
|
|
|
|
USER buildbot
|
|
|
|
ADD . .
|