Dockerfile/Dockerfile.lede

38 lines
1.0 KiB
Docker
Raw Normal View History

2023-03-17 21:53:06 +08:00
FROM ubuntu:jammy-20230308
LABEL maintainer=admin@licsber.site
ENV FORCE_UNSAFE_CONFIGURE=1
2023-03-13 23:10:03 +08:00
# https://openwrt.org/docs/guide-developer/toolchain/install-buildsystem
RUN echo $(nproc) && \
2023-03-17 23:11:58 +08:00
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 01:00:42 +08:00
zlib1g-dev file wget \
mkisofs libelf-dev > /dev/null && \
2023-03-17 23:11:58 +08:00
apt clean > /dev/null && \
rm -rf /var/lib/apt/list/*
WORKDIR /licsber
2023-03-17 22:57:37 +08:00
RUN git clone --depth=1 https://github.com/coolsnowwolf/lede.git
RUN git clone --depth=1 https://github.com/fw876/helloworld.git && \
cp -r helloworld lede/package
RUN cd lede && \
./scripts/feeds update -a && \
./scripts/feeds install -a
2023-03-17 23:36:03 +08:00
COPY openwrt-config/lede.x86.config lede/.config
2023-03-18 00:12:36 +08:00
RUN cd lede && \
2023-03-18 01:00:42 +08:00
make defconfig
2023-03-18 01:04:23 +08:00
RUN cd lede && \
make download -j8
2023-03-17 23:36:03 +08:00
2023-03-18 11:21:05 +08:00
RUN cd lede && \
make -j4 || make -j1 V=s && \
echo $?
2023-03-18 00:44:28 +08:00
CMD bash