I have a dockerfile. In which i have to clone a repository from bitbucket using https url but how am i suppose to pass a password to make the clone complete? And yes i tried ssh .it works but i need https clone for some shell script to run so that it should automatically accepts the password.
Here is my docker command to clone repo:
RUN git clone https://username@bitbucket.org/abc/xyz.git
And here is the error i get while buildind docker file : \
Cloning into 'newfolder'... fatal: could not read Password for 'https://username@bitbucket.org': No such device or address
MY build command is :
sudo docker build --no-cache=true -t image:build .