Build Openlitespeed on Alpine Linux

Good day, friends!
Since version 1.7.4 Openlitespeed supports Alpine Linux.
But if version 1.7.12 was built from sources with a binary file /usr/local/lsws/bin/openlitespeed size of 26 megabytes, then version 1.7.14 is built with a binary file of 45 megabytes!
Moreover, on centos and debian, when installing from the repositories, the binary file is only 8 megabytes.
Why is there such a big difference in file sizes?
Thank you for the clarification!
Can you tell me how you can disable unnecessary modules and debugging during compilation?
Something like this?
./ --with-brotli=no --enable-recaptcha=no or I need to edit file configure?


You cannot control modules like that, need to change CMakeList.txt.
And debug symbol can be removed with strip openlitespeed .
How to use strip openlitespeed ?
So far, good results have been obtained by replacing the string
cmake -DCMAKE_BUILD_TYPE=Release ..
Instead of 45 megabytes, the binary file turned out to be 24 megabytes.
After all the experiments, I accidentally found a 8585 kb openlitespeed file in the admin/fcgi-bin folder.
Where he came from there is unknown. I changed the file /usr/local/lsws/bin/openlitespeed to it. Everything works!
Cold-Egg, thanks for your support!