Git clone doesn't work while building a container


I’m a newbie to docker as well as git. I’m currently working on a dockerfile to build a container that has the source code of a bioinformatics pipeline from bitbucket. To have this code in the container I’m doing a git clone to have the repo. I do have admin privileges to this repo even then I get an error

" Cloning into ‘microbiome’…

fatal: unable to access ‘’: gnutls_handshake() failed: An unexpected TLS packet was received."

Can someone please help me solve this issue. Thanks.