Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FROM ubuntu:16.04
- RUN apt-get update
- && apt-get upgrade -y
- && apt-get install -y
- git
- make
- python-pip
- python2.7
- python2.7-dev
- ssh
- && apt-get autoremove
- && apt-get clean
- ARG password
- ARG username
- ENV password $password
- ENV username $username
- RUN pip install git+http://$username:$password@org.bitbucket.com/scm/do/repo.git
- docker build -t myimage:v1 --build-arg password="somepassoword" --build-arg username="someuser" .
- Step 8/8 : RUN pip install git+http://$username:$password@org.bitbucket.com/scm/do/repo.git
- ---> Running in 650d9423b549
- Collecting git+http://someuser:somepassword@org.bitbucket.com/scm/do/repo.git
Add Comment
Please, Sign In to add comment