/pywine

Docker image for Wine with Python 3

Primary LanguageDockerfileMIT LicenseMIT

Python3-Wine

License Maintenance Docker Automated build Docker Image Size (tag)

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

This dockerfile does some umask trickery to create a wineprefix usable by any user. This makes is 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

This is currently installed:

  • Python 3.7.6
  • pbr
  • PyInstaller