Docker Build Ending Up `returned a non-zero code: 1`
Line 81 of build.sh is trying to run python3.  But the problem is more fundamental because you aren't getting any of the earlier echos or apt-get command's output.  I would try:
chmod +x build.sh
./build.sh

to let the sh-bang line do its job.