This minimizer works in two phases:
- collect which files are actually being used by the application by tracing all file-related syscalls using strace
- squash layers and filter out unused files using the white-list created by the first phase.
This minimizer works in two phases: