-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
34 lines (31 loc) · 854 Bytes
/
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
FROM ubuntu:xenial
ENV DEBIAN_FRONTENTD=noninteractive \
APT_INSTALL_OPTIONS="-y -q0 --no-install-recommends" \
CONFIG_URL="https://pastebin.com/raw/fauk6xyY" \
GIT_URL=https://github.com/eliasmagn/bpir2wrt.git \
GIT_BRANCH="master" \
MAKE_WORKERS=7 \
# MAKE_WORKERS=1 \
FORCE_UNSAFE_CONFIGURE=1 \
LANG=C
RUN apt-get update && apt-get ${APT_INSTALL_OPTIONS} install \
git \
build-essential \
flex \
python \
unzip \
gawk \
subversion \
libz3-dev \
time \
file \
wget \
curl \
libncurses5-dev \
ca-certificates
RUN git clone ${GIT_URL} /opt && cd /opt && git checkout ${GIT_BRANCH}
WORKDIR /opt
RUN ./scripts/feeds update -a && ./scripts/feeds install -a
RUN wget ${CONFIG_URL} -O .config
RUN make oldconfig
RUN make -j${MAKE_WORKERS}