-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDockerfile.base.in
34 lines (27 loc) · 977 Bytes
/
Dockerfile.base.in
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
ARG ARCH=
FROM scratch
ADD base-%(arch)s-%(tag)s.tar /
ENV DEBIAN_FRONTEND noninteractive
ENV DEBCONF_NOWARNINGS yes
ENV DEBIAN_PRIORITY critical
# Copy relevant repositories and keyrings
# Note: .dummy files used to keep the directory hierarchy in git are
# copied too, see moby/moby#26332
COPY repositories/%(tag)s/all/* /etc/apt/sources.list.d/
COPY repositories/%(tag)s/%(arch)s/* /etc/apt/sources.list.d/
# Copy apt preferences
COPY preferences/%(tag)s/* /etc/apt/preferences.d/
COPY keyrings/all/* /etc/apt/droidian-gpg.d/
COPY keyrings/%(arch)s/* /etc/apt/droidian-gpg.d/
COPY common/apt.conf.d/* /etc/apt/apt.conf.d/
# Special handling for i386 packages
RUN \
if [ "%(arch)s" = "amd64" ]; then \
ln -s /usr/share/droidian-release/buildd_support.list /etc/apt/sources.list.d/buildd_support.list; \
dpkg --add-architecture i386; \
fi
# Add secondary architectures
RUN \
dpkg --add-architecture arm64 && \
dpkg --add-architecture armhf && \
apt-get update