|
|
@@ -1,18 +1,46 @@
|
|
1
|
1
|
# Define builder target
|
|
2
|
|
-FROM debian:stable-slim as builder
|
|
|
2
|
+ARG DEB_RELEASE
|
|
|
3
|
+FROM debian:${DEB_RELEASE}-slim as builder
|
|
3
|
4
|
|
|
4
|
5
|
# Environment PATH HOME HOSTNAME
|
|
5
|
6
|
# ENV PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
|
6
|
7
|
# ENV HOME /
|
|
7
|
8
|
|
|
|
9
|
+ARG DEB_RELEASE
|
|
|
10
|
+RUN printf '#------------------------------------------------------------------------------#\
|
|
|
11
|
+\n# OFFICIAL DEBIAN REPOS\
|
|
|
12
|
+\n#------------------------------------------------------------------------------#\
|
|
|
13
|
+\n# apt install curl wget apt-transport-https dirmngr\
|
|
|
14
|
+\n\
|
|
|
15
|
+\n###### Debian Main Repos\
|
|
|
16
|
+\ndeb http://deb.debian.org/debian/ '${DEB_RELEASE}' main # contrib non-free\
|
|
|
17
|
+\ndeb-src http://deb.debian.org/debian/ '${DEB_RELEASE}' main # contrib non-free\
|
|
|
18
|
+\n\
|
|
|
19
|
+\n# stretch-updates, previously known as "volatile"\
|
|
|
20
|
+\ndeb http://deb.debian.org/debian/ '${DEB_RELEASE}'-updates main # contrib non-free\
|
|
|
21
|
+\ndeb-src http://deb.debian.org/debian/ '${DEB_RELEASE}'-updates main # contrib non-free\
|
|
|
22
|
+\n\
|
|
|
23
|
+\ndeb http://deb.debian.org/debian-security '${DEB_RELEASE}'/updates main\
|
|
|
24
|
+\ndeb-src http://deb.debian.org/debian-security '${DEB_RELEASE}'/updates main\
|
|
|
25
|
+\n\
|
|
|
26
|
+\n# stretch-backports, previously on backports.debian.org\n\
|
|
|
27
|
+\ndeb http://ftp.debian.org/debian '${DEB_RELEASE}'-backports main\
|
|
|
28
|
+\ndeb-src http://ftp.debian.org/debian '${DEB_RELEASE}'-backports main\
|
|
|
29
|
+' >> /etc/apt/sources.list
|
|
|
30
|
+
|
|
|
31
|
+RUN cat /etc/apt/sources.list
|
|
|
32
|
+
|
|
|
33
|
+
|
|
8
|
34
|
# Build deps and clean up
|
|
9
|
35
|
ARG BUILD_DEPS
|
|
10
|
36
|
RUN export DEBIAN_FRONTEND=noninteractive && \
|
|
|
37
|
+ dpkg --add-architecture armhf && \
|
|
11
|
38
|
apt-get -q update && \
|
|
12
|
39
|
apt-get -qy -o Dpkg::Use-Pty=0 upgrade && \
|
|
13
|
40
|
apt-get -qy -o Dpkg::Use-Pty=0 install --no-install-recommends ${BUILD_DEPS} \
|
|
14
|
|
- build-essential ca-certificates curl git iproute2 wget && \
|
|
|
41
|
+ build-essential crossbuild-essential-armhf debhelper ca-certificates curl git iproute2 wget nano && \
|
|
15
|
42
|
apt-get clean && rm -rf /var/lib/apt/lists/*
|
|
16
|
43
|
|
|
17
|
44
|
# Default command
|
|
18
|
45
|
CMD ["bash"]
|
|
|
46
|
+
|