The reason the binary is huge because it contains all the jar/nar for the connectors (
https://www.nifi.rocks/apache-nifi-processors/).
If you only require a subset of them you can use the minifi version which is quite small ( 49 MB for java and 3.2 MB for c++ version)