diff --git a/contrib/windows/Dockerfile b/contrib/windows/Dockerfile index e17fd0f..38781aa 100644 --- a/contrib/windows/Dockerfile +++ b/contrib/windows/Dockerfile @@ -8,7 +8,7 @@ RUN dpkg --add-architecture i386 && \ apt-get update && apt-get install -y --no-install-recommends \ wine wine64 \ python3 python3-pip python3-venv libpython3.11 \ - binutils wget xvfb xauth ca-certificates \ + binutils wget xvfb xauth winetricks ca-certificates \ && rm -rf /var/lib/apt/lists/* WORKDIR /build @@ -23,6 +23,9 @@ RUN python3 -m venv venv && \ # Bootstrap Wine prefix RUN wineboot --init 2>/dev/null || true +# Install Visual C++ 2019 runtime (required by Python 3.11) +RUN xvfb-run winetricks -q vcrun2019 + # Install Python for Windows under Wine (silent, no GUI) RUN wget -q "https://www.python.org/ftp/python/3.11.9/python-3.11.9-amd64.exe" -O /tmp/py.exe && \ xvfb-run wine /tmp/py.exe /quiet InstallAllUsers=1 PrependPath=1 TargetDir="C:\\Python311" && \