2022-12-16 15:47:27 +00:00
|
|
|
FROM ubuntu:focal
|
|
|
|
|
|
|
|
RUN apt -y update
|
2022-12-19 07:01:47 +00:00
|
|
|
|
|
|
|
RUN DEBIAN_FRONTEND=noninteractive TZ=UTC \
|
|
|
|
apt -yq install \
|
2022-12-19 06:56:18 +00:00
|
|
|
build-essential rsync git-core subversion mercurial libssl-dev \
|
|
|
|
libncurses5-dev unzip gawk zlib1g-dev libncursesw5-dev zlib1g-dev \
|
2023-07-04 13:57:52 +00:00
|
|
|
gettext xsltproc wget unzip python python3-distutils
|
|
|
|
|
|
|
|
# Board build parameters
|
|
|
|
ENV OPENWRT_VERSION=22.03.2
|
|
|
|
ENV OPENWRT_TARGET=bcm27xx
|
|
|
|
ENV OPENWRT_DEVICE=bcm2711
|
|
|
|
ENV OPENWRT_CC=gcc-11.2.0_musl
|
2023-01-02 06:09:42 +00:00
|
|
|
|
2023-01-12 02:55:05 +00:00
|
|
|
RUN mkdir /Downloads
|
2023-01-08 19:26:29 +00:00
|
|
|
|
2023-01-12 02:55:05 +00:00
|
|
|
RUN wget -qP /Downloads \
|
2023-07-04 13:57:52 +00:00
|
|
|
"https://downloads.openwrt.org/releases/${OPENWRT_VERSION}/targets/${OPENWRT_TARGET}/${OPENWRT_DEVICE}/openwrt-imagebuilder-${OPENWRT_VERSION}-${OPENWRT_TARGET}-${OPENWRT_DEVICE}.Linux-x86_64.tar.xz"
|
2023-01-08 19:26:29 +00:00
|
|
|
|
2023-01-12 02:55:05 +00:00
|
|
|
RUN wget -qP /Downloads \
|
2023-07-04 13:57:52 +00:00
|
|
|
"https://downloads.openwrt.org/releases/${OPENWRT_VERSION}/targets/${OPENWRT_TARGET}/${OPENWRT_DEVICE}/openwrt-sdk-${OPENWRT_VERSION}-${OPENWRT_TARGET}-${OPENWRT_DEVICE}_${OPENWRT_CC}.Linux-x86_64.tar.xz"
|
2023-01-08 19:26:29 +00:00
|
|
|
|
2023-03-19 00:13:32 +00:00
|
|
|
# RUN wget -qP /Downloads \
|
2023-07-04 13:57:52 +00:00
|
|
|
# "https://downloads.openwrt.org/releases/${OPENWRT_VERSION}/targets/${OPENWRT_TARGET}/${OPENWRT_DEVICE}/openwrt-toolchain-${OPENWRT_VERSION}-${OPENWRT_TARGET}-${OPENWRT_DEVICE}_${OPENWRT_CC}.Linux-x86_64.tar.xz"
|
2023-01-08 19:26:29 +00:00
|
|
|
|
|
|
|
ADD . .
|