OpenCV3.4 or OpenCV3.2 for Android

Does anyone have a docker for compile OpenCV 3.4 or maybe OpenCV 3.2 for Android (SDK), from source?

I compiled ~ 2 years ago, but didn’t save prerequisites, and I am not having success compiling again with new tools, nor old tools (too many variables in the middle).

The reason, is I need to strip some modules again.
Indeed, it is already included on 3.4 branch with --modules_list parameter (with

It could be maybe a script for linux or macos.

Thanks in advance.