-
Notifications
You must be signed in to change notification settings - Fork 7
/
Dockerfile.build.bullseye
55 lines (45 loc) · 1.22 KB
/
Dockerfile.build.bullseye
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
50
51
52
53
54
55
FROM debian:bullseye-slim
USER root
RUN echo 'APT::Install-Recommends "false";' > /etc/apt/apt.conf.d/no-recommends && \
echo 'APT::Install-Suggests "false";' >> /etc/apt/apt.conf.d/no-recommends
RUN apt update -q
RUN apt install -y bison
RUN apt install -y build-essential
RUN apt install -y clang
RUN apt install -y curl
RUN apt install -y file
RUN apt install -y flex
RUN apt install -y gawk
RUN apt install -y gcc-multilib
RUN apt install -y gettext
RUN apt install -y git
RUN apt install -y libncurses-dev
RUN apt install -y libssl-dev
RUN apt install -y meson
RUN apt install -y openssh-client
RUN apt install -y python3
RUN apt install -y python3-distutils-extra
RUN apt install -y qemu-utils
RUN apt install -y rsync
RUN apt install -y ruby-sass
RUN apt install -y swig
RUN apt install -y time
RUN apt install -y unzip
RUN apt install -y wget
RUN apt install -y zlib1g-dev
RUN apt clean
RUN rm -rf /var/lib/apt/lists/* /var/cache/apt-show-versions/*
# base dir
ENV MFW=/home/mfw
RUN mkdir -p ${MFW}
# tools
ENV TOOLS=${MFW}/tools
VOLUME ${TOOLS}
# allow building as root
ENV FORCE_UNSAFE_CONFIGURE=1
# source tree
ENV SRC=${MFW}/openwrt
RUN mkdir -p ${SRC}
VOLUME ${SRC}
WORKDIR ${SRC}
ENTRYPOINT [ "/home/mfw/tools/build.sh" ]