I am trying to pass an .obj file on my computer to a docker file then ADD it to the image, but I am getting a file not found error. The file I am trying to access is even in the same folder as the dockerfile, but that may not always be the case.
After running this command...
sh maya-pipeline.sh /Users/kromah/Documents/Developer/Github/Unity/unity-pipeline-maya/house_data/0004d52d1aeeb8ae6de39d6bd993e992/main.obj
maya-pipeline.sh
echo $1
docker build --build-arg house=$1 -t dock .
The echo command outputs the file location
Dockerfile
FROM mottosso/mayabase-centos
MAINTAINER [email protected]
ARG house=/house_data/0004d52d1aeeb8ae6de39d6bd993e992/main.obj
ADD $house /root/pipeline
Error Message
lstat Users/kromah/Documents/Developer/Github/Unity/unity-pipeline-maya/house_data/0004d52d1aeeb8ae6de39d6bd993e992/main.obj: no such file or directory