Docker image for Wine with Python
| # debian.sh --arch 'amd64' out/ 'trixie' '@1760918400' |
| LABEL org.opencontainers.image.authors=Tobias Gruetzmacher <tobias-docker@23.gs> |
| ENV DEBIAN_FRONTEND=noninteractive |
| ARG TINI_VERSION=0.19.0 |
| ADD https://github.com/krallin/tini/releases/download/v0.19.0/tini /tini # buildkit |
| RUN |1 TINI_VERSION=0.19.0 /bin/sh -c chmod +x /tini # buildkit |
| COPY apt /etc/apt # buildkit |
| COPY fix-xvfb.sh wine-dependencies.txt /tmp/ # buildkit |
| RUN |1 TINI_VERSION=0.19.0 /bin/sh -c dpkg --add-architecture i386 && apt-get install -y --update --no-install-recommends ca-certificates curl unzip xauth xvfb && apt-get install -y --no-install-recommends --mark-auto $(cat /tmp/wine-dependencies.txt) && rm /tmp/wine-dependencies.txt && /tmp/fix-xvfb.sh && apt-get clean && rm -rf /var/lib/apt/lists/* # buildkit |
| ARG WINE_FLAVOUR=stable |
| RUN |2 TINI_VERSION=0.19.0 WINE_FLAVOUR=stable /bin/sh -c sed -i '/^Enabled:/ s/no/yes/' /etc/apt/sources.list.d/* && apt-get install -y --update --no-install-recommends winehq-${WINE_FLAVOUR} && apt-get clean && rm -rf /var/lib/apt/lists/* # buildkit |
| ENTRYPOINT ["/tini" "--"] |
| CMD ["/bin/bash"] |
| LABEL org.opencontainers.image.authors=Tobias Gruetzmacher <tobias-docker@23.gs> |
| ENV WINEDEBUG=-all |
| ENV WINEPREFIX=/opt/wineprefix |
| COPY wine-init.sh SHA256SUMS.txt /tmp/helper/ # buildkit |
| COPY mkuserwineprefix entrypoint.sh /opt/ # buildkit |
| RUN /bin/sh -c xvfb-run sh /tmp/helper/wine-init.sh # buildkit |
| ARG PYTHON_VERSION=3.13.9 |
| ARG UPX_VERSION=5.0.2 |
| RUN |2 PYTHON_VERSION=3.13.9 UPX_VERSION=5.0.2 /bin/sh -c umask 0 && cd /tmp/helper && curl --fail-with-body -LOO "https://www.python.org/ftp/python/${PYTHON_VERSION}/python-${PYTHON_VERSION}-amd64.exe{,.sigstore}" https://github.com/upx/upx/releases/download/v${UPX_VERSION}/upx-${UPX_VERSION}-win64.zip && cosign verify-blob --certificate-oidc-issuer https://accounts.google.com --certificate-identity-regexp='@python.org$' --bundle python-${PYTHON_VERSION}-amd64.exe.sigstore python-${PYTHON_VERSION}-amd64.exe && sha256sum -c SHA256SUMS.txt && xvfb-run sh -c " wine python-${PYTHON_VERSION}-amd64.exe /quiet TargetDir=C:\\Python Include_doc=0 InstallAllUsers=1 PrependPath=1; wineserver -w" && unzip upx*.zip && mv -v upx*/upx.exe ${WINEPREFIX}/drive_c/windows/ && cd .. && rm -Rf helper # buildkit |
| RUN |2 PYTHON_VERSION=3.13.9 UPX_VERSION=5.0.2 /bin/sh -c umask 0 && xvfb-run sh -c " wine pip install --no-warn-script-location pyinstaller; wineserver -w" # buildkit |
| ENTRYPOINT ["/opt/entrypoint.sh"] |
| RUN /bin/sh -c apt-get update -qq && apt-get install -y --no-install-recommends git curl ca-certificates && curl -fsSL https://deb.nodesource.com/setup_lts.x | bash - && apt-get install -y nodejs && apt-get clean && rm -rf /var/lib/apt/lists/* # buildkit |
| Key |
Value |
| org.opencontainers.image.authors |
Tobias Gruetzmacher <tobias-docker@23.gs> |
| org.opencontainers.image.created |
2025-10-26T14:43:47.268Z |
| org.opencontainers.image.description |
Docker image for Wine with Python |
| org.opencontainers.image.licenses |
MIT |
| org.opencontainers.image.revision |
61cca2f36d68e00039a5841299e60a20e41f16f0 |
| org.opencontainers.image.source |
https://github.com/webcomics/pywine |
| org.opencontainers.image.title |
pywine |
| org.opencontainers.image.url |
https://github.com/webcomics/pywine |
| org.opencontainers.image.version |
latest |