4 ms·
How do you get the repo's files into the Dockerfile build context ? Do you have to install git and then `git clone` or are these available at a specific path in
by zimbatm 13y ago
How do you get the repo's files into the Dockerfile build context ? Do you have to install git and then `git clone` or are these available at a specific path inside the container ?
- nickstinemates 13y agoUse the ADD command. ADD <folder/on/host> </mount/point/on/image>
- shykes 13y agoMore specifically it's: ADD <folder/on/sourcedir> </mount/point/on/image> When <sourcedir> is the directory you're passing to 'docker build', eg. "docker build ./myapp"