cdrx / docker-pyinstaller

PyInstaller for Linux and Windows inside Docker
MIT License
616 stars 240 forks source link

Building a one-file executable #98

Closed max-tet closed 4 years ago

max-tet commented 4 years ago

Hi,

I am trying to build a one-file executable. When using pyinstaller directly, I would add the --onefile option. But I have found no option to do this with docker-pyinstaller. Is this not supported?

jean-emmanuel commented 4 years ago

When generating the .spec file (https://github.com/cdrx/docker-pyinstaller#how-do-i-generate-a-spec-file) you can append --onefile to the command.

max-tet commented 4 years ago

That worked great, thanks!