1
0
mirror of https://github.com/alljoynsville/openwrt-builder synced 2025-07-11 08:18:39 +00:00
openwrt-builder/Dockerfile
2018-11-23 03:55:28 +02:00

18 lines
694 B
Docker

FROM ubuntu:bionic
RUN DEBIAN_FRONTEND=noninteractive apt-get -qq update && \
DEBIAN_FRONTEND=noninteractive apt-get install -yqq build-essential gcc-multilib quilt \
libncurses5-dev zlib1g-dev gawk flex gettext libssl-dev \
ccache sudo time git-core subversion wget unzip python vim && \
apt-get clean && \
useradd -m openwrt && \
echo 'openwrt ALL=NOPASSWD: ALL' > /etc/sudoers.d/openwrt
USER openwrt
RUN cd /home/openwrt && \
git clone --depth 1 --branch v18.06.1 https://git.openwrt.org/openwrt/openwrt.git openwrt && \
cd openwrt && \
./scripts/feeds update -a && \
rm -rf tmp
WORKDIR /home/openwrt/openwrt