2024-09-01 06:51:27 +00:00
|
|
|
FROM debian:bookworm
|
|
|
|
|
|
|
|
RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
|
2024-10-18 21:32:17 +00:00
|
|
|
apt-get install -qyy gnupg2 golang-go ca-certificates && \
|
|
|
|
apt-get clean
|
2024-09-01 06:51:27 +00:00
|
|
|
|
|
|
|
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-x86-64-w64-mingw32.static-qt5 && \
|
|
|
|
apt-get clean
|
|
|
|
|
|
|
|
ENV PATH=/usr/lib/mxe/usr/bin:$PATH
|
|
|
|
|
|
|
|
ENV CXX=x86_64-w64-mingw32.static-g++
|
|
|
|
ENV CC=x86_64-w64-mingw32.static-gcc
|
|
|
|
ENV PKG_CONFIG=x86_64-w64-mingw32.static-pkg-config
|
|
|
|
ENV GOOS=windows
|
|
|
|
ENV CGO_ENABLED=1
|
2024-10-27 05:09:05 +00:00
|
|
|
ENV GOFLAGS=-buildvcs=false
|