When using ADD with more than one source file, the destination must be a directory and end with a /
Following is my 9th line from Dockerfile
where I am trying to copy current directory content to /opt/app
Step 9/9 : ADD ./* /opt/app
But its failing with the following error
Step 9/9 : ADD ./* /opt/app
When using ADD with more than one source file, the destination must be a directory and end with a /
1 Answer
5 years ago by Eleven
Make the following change to your COPY command
- ADD ./* /opt/app
+ ADD ./* /opt/app/
i.e add a /
to end of the destination directory.
5 years ago by Karthik Divi