summaryrefslogtreecommitdiffstats
path: root/tests/docker/dockerfiles/debian9-mxe.docker
blob: ae2c222a6f08b7fcb9e3d24eb8a64c46fa6baabd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#
# Docker mingw cross-compiler target
#
# This docker target builds on the debian Stretch base image.
#
FROM qemu/debian9

MAINTAINER Philippe Mathieu-Daudé <f4bug@amsat.org>

RUN DEBIAN_FRONTEND=noninteractive eatmydata \
    apt install -y --no-install-recommends gnupg dirmngr

# Add the foreign architecture we want and install dependencies
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys C6BF758A33A3A276 && \
    echo "deb http://pkg.mxe.cc/repos/apt stretch main" > /etc/apt/sources.list.d/mxeapt.list
RUN apt-get update && \
    DEBIAN_FRONTEND=noninteractive eatmydata \
    apt-get install -y --no-install-recommends \
        $(apt-get -s install -y --no-install-recommends gw32.shared-mingw-w64 | egrep "^Inst mxe-x86-64-unknown-" | cut -d\  -f2)

ENV PATH $PATH:/usr/lib/mxe/usr/bin/