From c64f74c655be4bb7b3f4af3a3c65262498380082 Mon Sep 17 00:00:00 2001 From: Jiale Liu Date: Fri, 17 Mar 2023 23:50:06 +0800 Subject: [PATCH] Create Dockerfile.openwrt --- Dockerfile.openwrt | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 Dockerfile.openwrt diff --git a/Dockerfile.openwrt b/Dockerfile.openwrt new file mode 100644 index 0000000..b37e209 --- /dev/null +++ b/Dockerfile.openwrt @@ -0,0 +1,29 @@ +FROM ubuntu:jammy-20230308 +LABEL maintainer=admin@licsber.site + +ENV FORCE_UNSAFE_CONFIGURE=1 + +# https://openwrt.org/docs/guide-developer/toolchain/install-buildsystem +RUN echo $(nproc) && \ + apt update > /dev/null && \ + apt install -y -qq build-essential clang flex bison g++ gawk gcc-multilib g++-multilib \ + gettext git libncurses5-dev libssl-dev python3-distutils rsync unzip \ + zlib1g-dev file wget > /dev/null && \ + apt clean > /dev/null && \ + rm -rf /var/lib/apt/list/* + +WORKDIR /licsber + +RUN git clone --depth=1 https://github.com/openwrt/openwrt.git -b openwrt-22.03 +RUN git clone --depth=1 https://github.com/fw876/helloworld.git && \ + cp -r helloworld openwrt/package + +RUN cd openwrt && \ + ./scripts/feeds update -a && \ + ./scripts/feeds install -a + +COPY openwrt-config/openwrt.x86.config lede/.config +RUN cd openwrt && \ + make download -j8 + +CMD ['bash']