tests/docker: Use --arch-only when building Debian cross image
[qemu/ar7.git] / tests / docker / dockerfiles / debian10.docker
blobd034acbd256f90d250b850ac0215ef2e0fa7fc56
2 # Docker multiarch cross-compiler target
4 # This docker target is builds on Debian cross compiler targets to build distro
5 # with a selection of cross compilers for building test binaries.
7 # On its own you can't build much but the docker-foo-cross targets
8 # build on top of the base debian image.
10 FROM debian:buster-slim
12 # Duplicate deb line as deb-src
13 RUN cat /etc/apt/sources.list | sed "s/^deb\ /deb-src /" >> /etc/apt/sources.list
15 # Install common build utilities
16 RUN apt update && \
17     DEBIAN_FRONTEND=noninteractive apt install -yy eatmydata && \
18     DEBIAN_FRONTEND=noninteractive eatmydata \
19     apt install -y --no-install-recommends \
20         bc \
21         build-essential \
22         ca-certificates \
23         ccache \
24         clang \
25         dbus \
26         gdb-multiarch \
27         gettext \
28         git \
29         libncurses5-dev \
30         ninja-build \
31         pkg-config \
32         psmisc \
33         python3 \
34         python3-sphinx \
35         $(apt-get -s build-dep --arch-only qemu | egrep ^Inst | fgrep '[all]' | cut -d\  -f2)
37 ENV FEATURES docs