Browse Source

add armhf arch

tags/v0.0.55^0
Peter Vivell 6 years ago
parent
commit
2a0100e2f1
1 changed files with 30 additions and 2 deletions
  1. 30
    2
      Dockerfile

+ 30
- 2
Dockerfile View File

1
 # Define builder target
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
 # Environment PATH HOME HOSTNAME
5
 # Environment PATH HOME HOSTNAME
5
 # ENV PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
6
 # ENV PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
6
 # ENV HOME /
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
 # Build deps and clean up
34
 # Build deps and clean up
9
 ARG BUILD_DEPS
35
 ARG BUILD_DEPS
10
 RUN export DEBIAN_FRONTEND=noninteractive && \
36
 RUN export DEBIAN_FRONTEND=noninteractive && \
37
+    dpkg --add-architecture armhf && \
11
     apt-get -q  update && \
38
     apt-get -q  update && \
12
     apt-get -qy -o Dpkg::Use-Pty=0 upgrade && \
39
     apt-get -qy -o Dpkg::Use-Pty=0 upgrade && \
13
     apt-get -qy -o Dpkg::Use-Pty=0 install --no-install-recommends ${BUILD_DEPS} \
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
     apt-get clean && rm -rf /var/lib/apt/lists/*
42
     apt-get clean && rm -rf /var/lib/apt/lists/*
16
 
43
 
17
 # Default command
44
 # Default command
18
 CMD ["bash"]
45
 CMD ["bash"]
46
+

Loading…
Cancel
Save