Nov 4, 2024
If PyInstaller doesn’t work, a possible alternative is to build a minimal runtime environment with a lightweight base image (like Alpine) and copy only the necessary dependencies
This approach might take manual setup, but it can achieve similar reductions in image size without needing a standalone executable