Docker image for pyinstaller
Convert a Python program into a stand-alone executable:
# Create a hello.py
$ echo 'print("Hello Python")' > hello.py
# Convert hello.py into a stand-alone executable result in an ELF executable as 'dist/hello'
$ docker run -v $(pwd):/code coopermaa/pyinstaller --onefile --noconfirm hello.py
# Run the executable
$ dist/hello
Hello Python
A special note
- pyinstaller cannot run as root user, you have to run the container as a non-root user.
Content type
Image
Digest
Size
258.9 MB
Last updated
over 10 years ago
docker pull coopermaa/pyinstaller