1#
2# Docker multiarch cross-compiler target
3#
4# This docker target is builds on Debian and Emdebian's cross compiler targets
5# to build distro with a selection of cross compilers for building test binaries.
6#
7# On its own you can't build much but the docker-foo-cross targets
8# build on top of the base debian image.
9#
10FROM debian:stable-slim
11
12# Setup some basic tools we need
13RUN apt update
14RUN apt install -yy curl aptitude
15
16# Setup Emdebian
17RUN echo "deb http://emdebian.org/tools/debian/ jessie main" >> /etc/apt/sources.list
18RUN curl http://emdebian.org/tools/debian/emdebian-toolchain-archive.key | apt-key add -
19
20# Duplicate deb line as deb-src
21RUN cat /etc/apt/sources.list | sed "s/deb/deb-src/" >> /etc/apt/sources.list
22
23# Install common build utilities
24RUN apt update
25RUN apt install -yy build-essential clang
26