This is a container to build python scripts into windows exes on linux.
895
This is a container to build python scripts into windows exes on linux.
brimstone/pyinstallerx has only :latest
This runs Python 3.4 and pyinstaller 3.2.1
This container runs Wine inside Ubuntu to emulate Windows in Docker.
To build your application, you need to mount your source code into the /src/
volume.
The source code directory should have your .spec file that PyInstaller
generates. If you don't have one, you'll need to run PyInstaller once locally to
generate it.
If the src folder has a requirements.txt file, the packages will be
installed into the environment before PyInstaller runs.
For example, in the folder that has your source code, .spec file and
requirements.txt:
docker run -v "$(pwd):/src/" brimstone/pyinstaller-windows
will build your PyInstaller project into dist/windows/. The .exe file will have the same name as your .spec file.
You'll need to supply a custom command to Docker to install system pacakges. Something like:
docker run -v "$(pwd):/src/" brimstone/pyinstaller "apt-get update -y && apt-get install -y wget && pip install -r requirements.txt && pyinstaller --clean -y --dist ./dist/windows --workpath /tmp *.spec"
Replace wget with the dependencies / package(s) you need to install.
docker run -v "$(pwd):/src/" brimstone/pyinstaller pyinstaller your-script.py
will generate a spec file for your-script.py in your current working directory. See the PyInstaller docs for more information.
Add pyinstaller=3.3 to your requirements.txt.
Yes, by supplying the PYPI_URL and PYPI_INDEX_URL environment variables that point to your PyPi mirror.
Thanks to https://github.com/cdrx/docker-pyinstaller for the original work.
Content type
Image
Digest
Size
315.5 MB
Last updated
almost 9 years ago
docker pull brimstone/pyinstaller