2023-03-17 23:50:06 +08:00
|
|
|
FROM ubuntu:jammy-20230308
|
|
|
|
LABEL maintainer=admin@licsber.site
|
|
|
|
|
2023-03-18 00:05:19 +08:00
|
|
|
ENV TERM=xterm
|
2023-03-17 23:50:06 +08:00
|
|
|
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 \
|
2023-03-18 00:17:44 +08:00
|
|
|
zlib1g-dev file wget mkisofs > /dev/null && \
|
2023-03-17 23:50:06 +08:00
|
|
|
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
|
|
|
|
|
2023-03-18 00:12:14 +08:00
|
|
|
COPY openwrt-config/openwrt.x86.config openwrt/.config
|
2023-03-17 23:50:06 +08:00
|
|
|
RUN cd openwrt && \
|
|
|
|
make download -j8
|
|
|
|
|
|
|
|
CMD ['bash']
|