**cdrx/pyinstaller-linux** and **cdrx/pyinstaller-windows** are a pair of Docker containers to ease compiling Python applications to binaries / exe files.
**batonogov/pyinstaller-linux** and **batonogov/pyinstaller-windows** are a pair of Docker containers to ease compiling Python applications to binaries / exe files.
Current PyInstaller version used: 3.6.
Current PyInstaller version used:
- 4.2 for Python 3.9
- 3.6 for Python 2.7
## Tags
`cdrx/pyinstaller-linux` and `cdrx/pyinstaller-windows` both have two tags, `:python2` and `:python3` which you can use depending on the requirements of your project. `:latest` points to `:python3`
`batonogov/pyinstaller-linux` and `batonogov/pyinstaller-windows` both have two tags, `:python3` and `:python2` which you can use depending on the requirements of your project. `:latest` points to `:python3`
The `:python2` tags run Python 2.7.
The `:python3` tag runs Python 3.9.
The `:python3` tag runs Python 3.7.
The `:python2` tags run Python 2.7.
## Usage
@@ -25,13 +27,13 @@ If the `src` folder has a `requirements.txt` file, the packages will be installe
For example, in the folder that has your source code, `.spec` file and `requirements.txt`:
```
docker run -v "$(pwd):/src/" cdrx/pyinstaller-windows
docker run -v "$(pwd):/src/" batonogov/pyinstaller-windows
```
will build your PyInstaller project into `dist/windows/`. The `.exe` file will have the same name as your `.spec` file.
```
docker run -v "$(pwd):/src/" cdrx/pyinstaller-linux
docker run -v "$(pwd):/src/" batonogov/pyinstaller-linux
```
will build your PyInstaller project into `dist/linux/`. The binary will have the same name as your `.spec` file.
@@ -41,20 +43,20 @@ will build your PyInstaller project into `dist/linux/`. The binary will have the
You'll need to supply a custom command to Docker to install system pacakges. Something like: