Docker Minimal Image PyInstaller Binary File?
问题 So I have a Docker image that basically consists of compiling python source code to standalone executable with RUN pyinstaller --onefile app.py in the build stage (after all deps for pyinstaller and python installed). It then copies the standalone executable to a scratch image using COPY --from=builder /dist/app /app . It executes the binary on entrypoint. However in the scratch image, I am getting standard_init_linux.go:211: exec user process caused "no such file or directory" error when the