Build kit app inside Docker

Hello,
I’m trying to build a kit app inside a docker container.
I run build.sh but the build fails.
Is kit app intended to be built inside a container or is the intended way is to build it outside of the container?