mirror of
https://github.com/mappu/miqt.git
synced 2024-12-22 00:48:38 +00:00
22 lines
698 B
Docker
22 lines
698 B
Docker
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-x86-64-w64-mingw32.shared-qt5 && \
|
|
apt-get clean
|
|
|
|
ENV PATH=/usr/lib/mxe/usr/bin:$PATH
|
|
|
|
ENV CXX=x86_64-w64-mingw32.shared-g++
|
|
ENV CC=x86_64-w64-mingw32.shared-gcc
|
|
ENV PKG_CONFIG=x86_64-w64-mingw32.shared-pkg-config
|
|
ENV GOOS=windows
|
|
ENV CGO_ENABLED=1
|
|
ENV GOFLAGS=-buildvcs=false
|