2017-02-20 13:51:37 +03:00
|
|
|
#
|
|
|
|
# Docker multiarch cross-compiler target
|
|
|
|
#
|
2017-07-18 03:31:33 +03:00
|
|
|
# This docker target is builds on Debian cross compiler targets to build distro
|
|
|
|
# with a selection of cross compilers for building test binaries.
|
2017-02-20 13:51:37 +03:00
|
|
|
#
|
|
|
|
# On its own you can't build much but the docker-foo-cross targets
|
|
|
|
# build on top of the base debian image.
|
|
|
|
#
|
2017-07-18 03:31:33 +03:00
|
|
|
FROM debian:stretch-slim
|
2017-02-20 13:51:37 +03:00
|
|
|
|
|
|
|
# Duplicate deb line as deb-src
|
2017-06-02 21:56:13 +03:00
|
|
|
RUN cat /etc/apt/sources.list | sed "s/^deb\ /deb-src /" >> /etc/apt/sources.list
|
2017-02-20 13:51:37 +03:00
|
|
|
|
|
|
|
# Install common build utilities
|
|
|
|
RUN apt update
|
2017-06-02 21:56:14 +03:00
|
|
|
RUN DEBIAN_FRONTEND=noninteractive apt install -yy eatmydata
|
|
|
|
RUN DEBIAN_FRONTEND=noninteractive eatmydata \
|
|
|
|
apt install -y --no-install-recommends \
|
2017-07-18 03:31:33 +03:00
|
|
|
bison \
|
|
|
|
build-essential \
|
|
|
|
ca-certificates \
|
2017-07-18 05:47:13 +03:00
|
|
|
clang \
|
2017-07-18 03:31:33 +03:00
|
|
|
flex \
|
2017-09-22 18:49:31 +03:00
|
|
|
gettext \
|
2017-07-18 03:31:34 +03:00
|
|
|
git \
|
|
|
|
pkg-config \
|
2017-07-18 03:31:37 +03:00
|
|
|
psmisc \
|
|
|
|
python \
|
|
|
|
texinfo \
|
|
|
|
$(apt-get -s build-dep qemu | egrep ^Inst | fgrep '[all]' | cut -d\ -f2)
|