This looks like git is not contained within the base image. “…install git” did not complete..”
So baseline; What image (url / source). Then within that image you need to install base tool like git..
”’
– apt-get update -y
? ? – apt-get –yes install wget git unzip
”’
you may be missing apt staging command that pulls down apt package inventory