-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile.build-essential.in
53 lines (44 loc) · 1.53 KB
/
Dockerfile.build-essential.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Pull latest Droidian base image for flavour %(tag)s
ARG ARCH=
FROM quay.io/droidian/base:%(tag)s-%(arch)s
# 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/
# Copy deployer for repo.droidian.org
COPY extra/repo-droidian-deploy.sh /usr/local/bin
COPY extra/repo-droidian-sign.sh /usr/local/bin
# Add secondary architectures
RUN dpkg --add-architecture arm64 && dpkg --add-architecture armhf && dpkg --add-architecture i386
# Update and install
RUN apt-get update && apt-get install -y --allow-downgrades \
build-essential \
libncurses-dev \
bash-completion \
nano \
devscripts \
equivs \
wget \
openssh-client \
rsync \
mkbootimg \
mkdtboimg \
releng-tools && \
apt-get dist-upgrade -y --allow-downgrades
# FIXME: install libc6:i386
RUN \
if [ "%(arch)s" = "amd64" ]; then \
apt-get install -y libc6:i386; \
fi
# Patch dpkg-perl's Patch.pm to avoid overzealous checks
RUN \
sed -i \
"s|error(g_('diff %%s modifies file %%s through a symlink: %%s')|warning(g_('diff %%s modifies file %%s through a symlink: %%s')|" \
/usr/share/perl5/Dpkg/Source/Patch.pm && \
echo "libdpkg-perl hold" | dpkg --set-selections