98808c3d0c
Since docker caches the different layers, updating the package
list does not invalidate the previous "apt-get update" layer,
and it is likely "apt-get install" hits an outdated repository.
See commit beac6a98f6
and
https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#apt-get
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20190723141528.18023-1-philmd@redhat.com>
[AJB: manually applies and fixed up]
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
39 lines
1.4 KiB
Docker
39 lines
1.4 KiB
Docker
#
|
|
# Docker mingw64 cross-compiler target
|
|
#
|
|
# This docker target builds on the debian Stretch MXE base image.
|
|
#
|
|
FROM qemu:debian9-mxe
|
|
|
|
MAINTAINER Philippe Mathieu-Daudé <f4bug@amsat.org>
|
|
|
|
ENV TARGET x86-64
|
|
|
|
ENV PATH $PATH:/usr/lib/mxe/usr/$TARGET-w64-mingw32.shared/bin
|
|
|
|
ENV PKG_CONFIG_PATH \
|
|
$PKG_CONFIG_PATH:/usr/lib/mxe/usr/$TARGET-w64-mingw32.shared/lib/pkgconfig
|
|
|
|
RUN apt-get update && \
|
|
DEBIAN_FRONTEND=noninteractive eatmydata \
|
|
apt-get install -y --no-install-recommends \
|
|
mxe-$TARGET-w64-mingw32.shared-bzip2 \
|
|
mxe-$TARGET-w64-mingw32.shared-curl \
|
|
mxe-$TARGET-w64-mingw32.shared-glib \
|
|
mxe-$TARGET-w64-mingw32.shared-libgcrypt \
|
|
mxe-$TARGET-w64-mingw32.shared-libusb1 \
|
|
mxe-$TARGET-w64-mingw32.shared-lzo \
|
|
mxe-$TARGET-w64-mingw32.shared-nettle \
|
|
mxe-$TARGET-w64-mingw32.shared-ncurses \
|
|
mxe-$TARGET-w64-mingw32.shared-nsis \
|
|
mxe-$TARGET-w64-mingw32.shared-pixman \
|
|
mxe-$TARGET-w64-mingw32.shared-pkgconf \
|
|
mxe-$TARGET-w64-mingw32.shared-pthreads \
|
|
mxe-$TARGET-w64-mingw32.shared-sdl2 \
|
|
mxe-$TARGET-w64-mingw32.shared-sdl2-mixer \
|
|
mxe-$TARGET-w64-mingw32.shared-sdl2-gfx \
|
|
mxe-$TARGET-w64-mingw32.shared-zlib
|
|
|
|
# Specify the cross prefix for this image (see tests/docker/common.rc)
|
|
ENV QEMU_CONFIGURE_OPTS --cross-prefix=x86_64-w64-mingw32.shared-
|