Sign inSign up

quar/pyinstaller-ubuntu

By quar

•Updated over 6 years ago

Dockerized PyInstaller on Ubuntu

Image
0

192

quar/pyinstaller-ubuntu repository overview

⁠Dockerized PyInstaller on Ubuntu

⁠Motivation

PyInstaller is handy in packing Python scripts along with its dependencies into an uber-file. However,

PyInstaller does not bundle libc (the C standard library, usually glibc, the GNU version) with the app. 1⁠

This makes bundle for Ubuntu a bit harder, especially due to the tendency of Ubuntu for adopting new C standard library while a bit backwards in adopting newer version of Python.

Therefore, to bundle a Python app for an Ubuntu distribution, the easiest solution is to mount the Python app into a Dockerized Ubuntu container, using PyInstaller to bundle and export, then deliver.

⁠To Use

The mounting point /code has been created, use it like:

docker run -it --rm -v "$PWD:/code" quar/pyinstaller-ubuntu:18.04

⁠Tags:

Docker ImageUbuntu VersionPython Version
quar/pyinstaller-ubuntu:18.0418.043.6.9

Tag summary

Content type

Image

Digest

Size

206.3 MB

Last updated

over 6 years ago

docker pull quar/pyinstaller-ubuntu