fix(docker): install vcrun2019 via winetricks to fix python.exe c0000135

Python 3.11 requires VCRUNTIME140.dll (VC++ 2019 runtime) which is
not present in the default Wine prefix; without it python.exe fails
with STATUS_DLL_NOT_FOUND (exit code 53).
This commit is contained in:
2026-03-10 09:46:06 +01:00
parent 23e7d70720
commit f7c108c77f

View File

@@ -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" && \