openwrt-builders/base-debian/Containerfile

56 lines
962 B
Docker

FROM debian:latest
ENV DEBIAN_FRONTEND noninteractive
RUN --mount=type=cache,dst=/var/cache/apt/archives apt-get update
RUN --mount=type=cache,dst=/var/cache/apt/archives apt-get install --no-install-recommends -y \
ca-certificates \
git
RUN git clone --depth='1' --branch='v23.05.2' https://git.openwrt.org/openwrt/openwrt.git /root/OpenWRT
WORKDIR /root/OpenWRT
RUN --mount=type=cache,dst=/var/cache/apt/archives apt-get install --no-install-recommends -y \
asciidoc \
autoconf \
automake \
bash \
bc \
bzip2 \
ccache \
coreutils \
diffutils \
file \
findutils \
flex \
g++ \
gawk \
gcc \
gettext \
grep \
gzip \
help2man \
intltool \
libelf-dev \
libssl-dev \
xsltproc \
linux-headers-amd64 \
make \
libncurses-dev \
patch \
perl-modules \
pkgconf \
python3-dev \
rsync \
tar \
time \
unzip \
util-linux \
wget \
zlib1g-dev
ENV FORCE_UNSAFE_CONFIGURE=1
RUN ./scripts/feeds update -a
RUN ./scripts/feeds install -a