SyntaxFix
Write A Post
Hire A Developer
Questions
Above solutions did not work for bitbucket. I figured this does the trick:
RUN ssh-keyscan bitbucket.org >> /root/.ssh/known_hosts \ && eval `ssh-agent` \ && ssh-add ~/.ssh/[key] \ && git clone [email protected]:[team]/[repo].git