Does pyinstaller have any parameters like gcc -static?
问题 I have a similar question to this : Is there a way to compile a Python program to binary and use it with a Scratch Dockerfile? In this page, I saw that someone said that a C application runs well when compiled with -static . So I have a new question: does pyinstaller have any parameters like gcc -static to make a python application run well in a Scratch Docker image? 回答1: The -F and --onefile parameters should do what you are looking to do. You'll likely want to take a look at your specs file