Sign inSign up

coopermaa/pyinstaller

By coopermaa

Updated over 10 years ago

Docker image for pyinstaller

Image
1

1.4K

coopermaa/pyinstaller repository overview

docker-pyinstaller

Docker image for pyinstaller

How to use this image

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.

Tag summary

Content type

Image

Digest

Size

258.9 MB

Last updated

over 10 years ago

docker pull coopermaa/pyinstaller