I want to pass the content of some file to my docker image, basically the .aws credential and other file. Is there a way out?
Please find the code as below:
docker build -t TestImage . --build-arg AWSPathConfig=/home/ubuntu/.aws/config --build-arg AWSPathCredential=/home/ubuntu/.aws/credentials --no-cache=true
here AWSPathConfig and AWSPathCredential are the aws config and credential content