Convert a python application to binary
771
To build a Python package, create a Docker container with your source mounted as a volume at /src
docker run --rm -v "${PWD}:/src" pyinstaller:${TAG} --noconfirm --onefile --log-level DEBUG --clean example.py
If a requirements.txt file is found in your source directory, the requirements will automatically be installed with pip.
This will output a built app to the dist sub-directory in your source directory.
./dist/example
Content type
Image
Digest
sha256:02c8214c9…
Size
93.8 MB
Last updated
over 3 years ago
docker pull leandrorusso/pyinstaller:alpine-py3