|
|
@@ -6,6 +6,7 @@ FROM debian:${DEB_RELEASE}-slim as builder
|
|
6
|
6
|
# ENV PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
|
7
|
7
|
# ENV HOME /
|
|
8
|
8
|
|
|
|
9
|
+# Define Debian repos
|
|
9
|
10
|
ARG DEB_RELEASE
|
|
10
|
11
|
RUN printf '#------------------------------------------------------------------------------#\
|
|
11
|
12
|
\n# OFFICIAL DEBIAN REPOS\
|
|
|
@@ -23,13 +24,10 @@ RUN printf '#-------------------------------------------------------------------
|
|
23
|
24
|
\ndeb http://deb.debian.org/debian-security '${DEB_RELEASE}'/updates main\
|
|
24
|
25
|
\ndeb-src http://deb.debian.org/debian-security '${DEB_RELEASE}'/updates main\
|
|
25
|
26
|
\n\
|
|
26
|
|
-\n# stretch-backports, previously on backports.debian.org\n\
|
|
|
27
|
+\n# stretch-backports, previously on backports.debian.org\
|
|
27
|
28
|
\ndeb http://ftp.debian.org/debian '${DEB_RELEASE}'-backports main\
|
|
28
|
29
|
\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
|
|
-
|
|
|
30
|
+\n' > /etc/apt/sources.list
|
|
33
|
31
|
|
|
34
|
32
|
# Build deps and clean up
|
|
35
|
33
|
ARG BUILD_DEPS
|
|
|
@@ -37,6 +35,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
|
|
37
|
35
|
dpkg --add-architecture armhf && \
|
|
38
|
36
|
apt-get -q update && \
|
|
39
|
37
|
apt-get -qy -o Dpkg::Use-Pty=0 upgrade && \
|
|
|
38
|
+ apt-get -qy -o Dpkg::Use-Pty=0 install --no-install-recommends apt-utils && \
|
|
40
|
39
|
apt-get -qy -o Dpkg::Use-Pty=0 install --no-install-recommends ${BUILD_DEPS} \
|
|
41
|
40
|
build-essential crossbuild-essential-armhf debhelper ca-certificates curl git iproute2 wget nano && \
|
|
42
|
41
|
apt-get clean && rm -rf /var/lib/apt/lists/*
|