2017-07-18 05:47:09 +03:00
|
|
|
#
|
|
|
|
# Docker mingw cross-compiler target
|
|
|
|
#
|
2019-07-12 10:38:22 +03:00
|
|
|
# This docker target builds on the debian Stretch base image.
|
2017-07-18 05:47:09 +03:00
|
|
|
#
|
2019-07-12 10:38:22 +03:00
|
|
|
FROM qemu:debian9
|
2017-07-18 05:47:09 +03:00
|
|
|
|
|
|
|
MAINTAINER Philippe Mathieu-Daudé <f4bug@amsat.org>
|
|
|
|
|
2019-07-12 10:38:22 +03:00
|
|
|
RUN DEBIAN_FRONTEND=noninteractive eatmydata \
|
|
|
|
apt install -y --no-install-recommends gnupg dirmngr
|
|
|
|
|
2017-07-18 05:47:09 +03:00
|
|
|
# Add the foreign architecture we want and install dependencies
|
2019-07-12 10:38:22 +03:00
|
|
|
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
|
2019-07-23 17:15:27 +03:00
|
|
|
RUN apt-get update && \
|
|
|
|
DEBIAN_FRONTEND=noninteractive eatmydata \
|
2017-07-18 05:47:09 +03:00
|
|
|
apt-get install -y --no-install-recommends \
|
2018-06-28 19:46:38 +03:00
|
|
|
$(apt-get -s install -y --no-install-recommends gw32.shared-mingw-w64 | egrep "^Inst mxe-x86-64-unknown-" | cut -d\ -f2)
|
2017-07-18 05:47:09 +03:00
|
|
|
|
2019-09-19 01:25:46 +03:00
|
|
|
ENV PATH $PATH:/usr/lib/mxe/usr/bin/
|