3 ms·
If this is a company project, a REST API or task service of some kind, then you are probably using Docker in the year 2021. If this is anything else, or if you
by StevePerkins 5y ago
If this is a company project, a REST API or task service of some kind, then you are probably using Docker in the year 2021.
If this is anything else, or if you work for a shop that hasn't embraced containerization, then you use PyInstaller (http://www.pyinstaller.org http://www.pyinstaller.org) to bundle your application. Either into a directory that contains your full Python virtual environment (only 5-10 megs!), or into a single executable file.
The latter is most convenient for a Go/Rust type experience. But the former will startup faster, because that single-file executable has to first uncompress itself to the system temp directory.