From 185246e902dd4230d9c63df61a64069fdda0a398 Mon Sep 17 00:00:00 2001 From: mappu Date: Mon, 30 Dec 2024 18:42:35 +1300 Subject: [PATCH] docker: add 32-bit mingw docker containers --- ...n32-cross-go1.23-qt5.15-dynamic.Dockerfile | 22 +++++++++++++++++++ ...in32-cross-go1.23-qt5.15-static.Dockerfile | 22 +++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 docker/win32-cross-go1.23-qt5.15-dynamic.Dockerfile create mode 100644 docker/win32-cross-go1.23-qt5.15-static.Dockerfile diff --git a/docker/win32-cross-go1.23-qt5.15-dynamic.Dockerfile b/docker/win32-cross-go1.23-qt5.15-dynamic.Dockerfile new file mode 100644 index 00000000..44ecbb73 --- /dev/null +++ b/docker/win32-cross-go1.23-qt5.15-dynamic.Dockerfile @@ -0,0 +1,22 @@ +FROM golang:1.23-bookworm + +RUN DEBIAN_FRONTEND=noninteractive apt-get update && \ + apt-get install -qyy gnupg2 ca-certificates && \ + apt-get clean + +RUN DEBIAN_FRONTEND=noninteractive \ + echo "deb https://pkg.mxe.cc/repos/apt buster main" >/etc/apt/sources.list.d/mxeapt.list && \ + apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 86B72ED9 && \ + apt-get update && \ + apt-get install -qyy mxe-i686-w64-mingw32.shared-qt5 && \ + apt-get clean + +ENV PATH=/usr/lib/mxe/usr/bin:$PATH + +ENV CXX=i686-w64-mingw32.shared-g++ +ENV CC=i686-w64-mingw32.shared-gcc +ENV PKG_CONFIG=i686-w64-mingw32.shared-pkg-config +ENV GOOS=windows +ENV GOARCH=386 +ENV CGO_ENABLED=1 +ENV GOFLAGS=-buildvcs=false diff --git a/docker/win32-cross-go1.23-qt5.15-static.Dockerfile b/docker/win32-cross-go1.23-qt5.15-static.Dockerfile new file mode 100644 index 00000000..f8e9490c --- /dev/null +++ b/docker/win32-cross-go1.23-qt5.15-static.Dockerfile @@ -0,0 +1,22 @@ +FROM golang:1.23-bookworm + +RUN DEBIAN_FRONTEND=noninteractive apt-get update && \ + apt-get install -qyy gnupg2 ca-certificates && \ + apt-get clean + +RUN DEBIAN_FRONTEND=noninteractive \ + echo "deb https://pkg.mxe.cc/repos/apt buster main" >/etc/apt/sources.list.d/mxeapt.list && \ + apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 86B72ED9 && \ + apt-get update && \ + apt-get install -qyy mxe-i686-w64-mingw32.static-qt5 && \ + apt-get clean + +ENV PATH=/usr/lib/mxe/usr/bin:$PATH + +ENV CXX=i686-w64-mingw32.static-g++ +ENV CC=i686-w64-mingw32.static-gcc +ENV PKG_CONFIG=i686-w64-mingw32.static-pkg-config +ENV GOOS=windows +ENV GOARCH=386 +ENV CGO_ENABLED=1 +ENV GOFLAGS=-buildvcs=false