Guest User

Untitled

a guest
Jan 10th, 2019
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. FROM ubuntu:16.04
  2.  
  3. RUN apt-get update
  4. && apt-get upgrade -y
  5. && apt-get install -y
  6. git
  7. make
  8. python-pip
  9. python2.7
  10. python2.7-dev
  11. ssh
  12. && apt-get autoremove
  13. && apt-get clean
  14.  
  15. ARG password
  16. ARG username
  17. ENV password $password
  18. ENV username $username
  19.  
  20. RUN pip install git+http://$username:$password@org.bitbucket.com/scm/do/repo.git
  21.  
  22. docker build -t myimage:v1 --build-arg password="somepassoword" --build-arg username="someuser" .
  23.  
  24. Step 8/8 : RUN pip install git+http://$username:$password@org.bitbucket.com/scm/do/repo.git
  25. ---> Running in 650d9423b549
  26. Collecting git+http://someuser:somepassword@org.bitbucket.com/scm/do/repo.git
Add Comment
Please, Sign In to add comment