767b6bd22b
We've been misusing the tag naming scheme for some time by overloading the post : section with the image type. Really it should be saved for the revision of that particular build. Move the details to the other side so we have: qemu/image-name with the implied :latest version added by the tooling. Suggested-by: Daniel P. Berrangé <berrange@redhat.com> Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-Id: <20200701135652.1366-18-alex.bennee@linaro.org>
22 lines
812 B
Docker
22 lines
812 B
Docker
#
|
|
# 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/
|