I have a Dockerfile located at path:
/Users/userx/Library/Documents/dockerProject
I want to copy a file into the container from:
/Users/userx/Library/temp/otherfiles/myFile.txt
I would like to do this from with in the Dockerfile. I tried using COPY
but it only works in the context of the project.
some people implied I can do it with the RUN
command chaining bash commands but when I use:
RUN 'cd /Users/userx/Library/temp/otherfiles/;pwd'
I get the error returned a non-zero code
How can I copy a file using a Dockerfile from a system absolute path.
thanks