tests/dockerfiles: update the win cross builds to stretch
[qemu/ar7.git] / tests / docker / dockerfiles / debian9-mxe.docker
blob5bc8a6d5c3623dee4de782942d4ed8d217004ab5
2 # Docker mingw cross-compiler target
4 # This docker target builds on the debian Stretch base image.
6 FROM qemu:debian9
8 MAINTAINER Philippe Mathieu-Daudé <f4bug@amsat.org>
10 RUN DEBIAN_FRONTEND=noninteractive eatmydata \
11     apt install -y --no-install-recommends gnupg dirmngr
13 # Add the foreign architecture we want and install dependencies
14 RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys C6BF758A33A3A276 && \
15     echo "deb http://pkg.mxe.cc/repos/apt stretch main" > /etc/apt/sources.list.d/mxeapt.list
16 RUN apt-get update
17 RUN DEBIAN_FRONTEND=noninteractive eatmydata \
18     apt-get install -y --no-install-recommends \
19         libpython2.7-stdlib \
20         $(apt-get -s install -y --no-install-recommends gw32.shared-mingw-w64 | egrep "^Inst mxe-x86-64-unknown-" | cut -d\  -f2)
22 ENV PATH $PATH:/usr/lib/mxe/usr/bin/