Compile Python 3.x scripts with Pyinstaller into 32 bit Windows executables on Ubuntu with Wine. This work has been forked and adapted from outscale/wine-pyinstaller.
make build
- bind mount current directory with script to
/src/
- assumes usage of poetry and presence of
pyproject.toml
- docker run parameters are passed to pyinstaller
docker run -it -v $(pwd):/src banduk/wine-pyinstaller \
--clean \
--name my-program \
--onefile \
my_python_script.py
docker run -it banduk/wine-pyinstaller --bash