No description
Find a file
Liam Steckler f67fce63ba
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Fix Git download
2025-10-29 15:03:21 -07:00
.github Update tags for Python 3.14 2025-10-27 00:31:47 +01:00
.gitignore Initial version. 2016-08-01 23:07:36 +02:00
.woodpecker.yml Only build amd64 for now 2025-10-29 14:23:22 -07:00
Dockerfile Fix Git download 2025-10-29 15:03:21 -07:00
entrypoint.sh Show a warning when 9p drvfs mounts are detected (see #16) 2023-08-03 13:58:50 +02:00
LICENSE Update copyright for 2023 2023-01-24 11:45:29 +01:00
mkuserwineprefix Implement and document "wineprefix-sharing" 2018-05-19 18:11:42 +02:00
README.md Update tags for Python 3.14 2025-10-27 00:31:47 +01:00
SHA256SUMS.txt Update SHA256SUM for UPX 5.0.2 2025-10-26 11:39:52 +01:00
wine-init.sh Remove mention of setting the default to Windows 10 2024-02-28 21:31:57 +01:00

Python3 in Wine in Docker

License GitHub last commit Docker Image Size

This is a docker container to help building Python applications in Wine. It installs Python and PyInstaller to be able to build "native" Windows applications. It also installs UPX, so PyInstaller can use it to compress binaries.

Since Python 3.9, this uses the 64-bit version of Python, since that is the default download from python.org. If you need a different version, please use one of the tags described below.

This dockerfile does some umask trickery to create a wineprefix usable by any user. This makes it convinient to use from a Jenkins build, since those often use a non-root user inside the container. Unfortunatly, wine doesn't like to use a wineprefix not owned by the current user. If you want to use the "global" wineprefix from another user, you can source the /opt/mkuserwineprefix script to create an "usable" wineprefix:

  . /opt/mkuserwineprefix

Older Python versions

If you need older Python versions for some reason, there are currently tags for the following Python branches:

  • Python 3.14.x: tobix/pywine:3.14
  • Python 3.13.x: tobix/pywine:3.13
  • Python 3.12.x: tobix/pywine:3.12
  • Python 3.11.x: tobix/pywine:3.11
  • Python 3.10.x: tobix/pywine:3.10

Older branches might be out-of-date. Please create an issue if you need any updates.