in my current directory I have multiple directories that i want to copy them inside dockerfile but not all of them inside single location, lets sya I have dir1, dir2, file1 and i want to copy dir1 into des1 and dir2 into des2 and file1 into WORKDIR . I have no problem doing it with three layes using copy command inside dockerfile, but is there another way to do that in single layer using copy or add command ??
I achieved that by doing this:
COPY dir1/ /app/dir1 COPY dir2/ /app/dir2 COYP file1 /app
Target needed is to do all of them in single COPY.