-
Notifications
You must be signed in to change notification settings - Fork 22
/
Dockerfile.bullseye-build
51 lines (39 loc) · 1.26 KB
/
Dockerfile.bullseye-build
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
FROM untangleinc/ngfw:bullseye-base-multiarch
LABEL maintainer="Sebastien Delafond <[email protected]>"
# do not gzip apt lists files (for apt-show-versions)
RUN rm /etc/apt/apt.conf.d/docker-gzip-indexes
RUN apt update -q
# add foreign architectures and their corresponding crossbuild package
RUN dpkg --add-architecture arm64
RUN apt install --yes crossbuild-essential-arm64
# RUN dpkg --add-architecture armhf
# RUN apt install --yes crossbuild-essential-armhf
# install required packages
RUN apt install --yes build-essential
RUN apt install --yes debhelper
RUN apt install --yes devscripts
RUN apt install --yes git
RUN apt install --yes apt-show-versions
RUN apt install --yes openssh-client
RUN apt install --yes dput
RUN apt install --yes curl
RUN apt install --yes procps
RUN apt install --yes gawk
RUN apt install --yes apt-utils
# cleanup
RUN apt clean
RUN rm -rf /var/lib/apt/lists/* /var/cache/apt-show-versions/*
# do not use official Debian mirrors during build
RUN rm /etc/apt/sources.list
# base dir
ENV UNTANGLE=/opt/untangle
RUN mkdir -p ${UNTANGLE}
# pkgtools
ENV PKGTOOLS=${UNTANGLE}/ngfw_pkgtools
VOLUME ${PKGTOOLS}
# source to build
ENV SRC=/opt/untangle/build
RUN mkdir -p ${SRC}
VOLUME ${SRC}
WORKDIR ${SRC}
CMD [ "bash", "-c", "${PKGTOOLS}/build.sh" ]