mirror of
https://github.com/licsber/Dockerfile.git
synced 2024-09-20 02:30:26 +08:00
Create Dockerfile.openwrt.r4s
This commit is contained in:
parent
f74b1f5d29
commit
682471f4cb
39
Dockerfile.openwrt.r4s
Normal file
39
Dockerfile.openwrt.r4s
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
FROM ubuntu:jammy-20230308
|
||||||
|
LABEL maintainer=admin@licsber.site
|
||||||
|
|
||||||
|
ENV TERM=xterm
|
||||||
|
ENV FORCE_UNSAFE_CONFIGURE=1
|
||||||
|
|
||||||
|
# https://openwrt.org/docs/guide-developer/toolchain/install-buildsystem
|
||||||
|
# https://github.com/coolsnowwolf/lede
|
||||||
|
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 \
|
||||||
|
mkisofs libelf-dev > /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.r4s.config openwrt/.config
|
||||||
|
RUN cd openwrt && \
|
||||||
|
make defconfig
|
||||||
|
|
||||||
|
RUN cd openwrt && \
|
||||||
|
make download -j8
|
||||||
|
|
||||||
|
RUN cd openwrt && \
|
||||||
|
make -j4 || make -j1 V=s && \
|
||||||
|
echo $?
|
||||||
|
|
||||||
|
CMD bash
|
Loading…
Reference in New Issue
Block a user