How to use Dockerfile COPY command to copy files from parent directories

Viewed 9

I am trying to build a Dockerfile image and I am getting an error in the part of COPY command.

The error is

no such file or directory

The code are as below

...
COPY ../../Folder/file1.txt .
COPY ../../Folder/file2.txt .
...
0 Answers
Related