-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDockerfile
50 lines (40 loc) · 1.16 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
FROM ubuntu:20.04 as builder
LABEL maintainer="Jonathan Gao <[email protected]>"
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get upgrade -y
# install useful packages
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y -qq \
git \
gnupg \
lsb-release \
silversearcher-ag \
perl \
vim \
make \
gawk \
libncurses-dev \
rsync \
gcc \
g++ \
unzip \
bzip2 \
wget \
python \
bash \
genisoimage \
protobuf-compiler protobuf-c-compiler \
build-essential ccache ecj fastjar file g++ gawk \
gettext git java-propose-classpath libelf-dev libncurses5-dev \
libncursesw5-dev libssl-dev python python2.7-dev python3 unzip wget \
python3-distutils python3-setuptools python3-dev rsync subversion swig \
time xsltproc zlib1g-dev ca-certificates mkisofs
RUN git clone --depth 1 --single-branch --branch openwrt-21.02 https://git.openwrt.org/openwrt/openwrt.git /openwrt
COPY config /openwrt/.config
RUN cd /openwrt \
&& ./scripts/feeds update -a \
&& ./scripts/feeds install -a \
&& export FORCE_UNSAFE_CONFIGURE=1 \
&& make defconfig \
&& make world
FROM alpine
COPY --from=builder /openwrt/bin /openwrt