Executing the following script on a Ubuntu 20.04 machine to build a base image:
WORKING_DIR=/tmp/habanaai
rm -rf $WORKING_DIR
mkdir -p $WORKING_DIR
cd $WORKING_DIR
git clone https://github.com/HabanaAI/Setup_and_Install.git
cd $WORKING_DIR/Setup_and_Install/dockerfiles/base
make build BUILD_OS=ubuntu20.04
It failed with Permission denied error. install_efa.sh file doesn't have x permission and "RUN ./install_efa.sh && rm install_efa.sh" failed. replace it with "RUN /bin/bash ./install_efa.sh && rm install_efa.sh" solved the problem.

Executing the following script on a Ubuntu 20.04 machine to build a base image:
WORKING_DIR=/tmp/habanaai
rm -rf $WORKING_DIR
mkdir -p $WORKING_DIR
cd $WORKING_DIR
git clone https://github.com/HabanaAI/Setup_and_Install.git
cd $WORKING_DIR/Setup_and_Install/dockerfiles/base
make build BUILD_OS=ubuntu20.04
It failed with Permission denied error. install_efa.sh file doesn't have x permission and "RUN ./install_efa.sh && rm install_efa.sh" failed. replace it with "RUN /bin/bash ./install_efa.sh && rm install_efa.sh" solved the problem.