Skip to content

Commit 30ccd56

Browse files
committed
Merge pull request #2 from djsly/master
Copying a directory keeping the original directory
2 parents 66033ef + 216b756 commit 30ccd56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/kpelykh/docker/client/DockerClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -724,7 +724,7 @@ public ClientResponse build(File dockerFolder, String tag, boolean noCache) thro
724724
throw new DockerException(String.format("Source file %s doesnt' exist", src));
725725
}
726726
if (src.isDirectory()) {
727-
FileUtils.copyDirectory(src, tmpDockerContextFolder);
727+
FileUtils.copyDirectoryToDirectory(src, tmpDockerContextFolder);
728728
} else {
729729
FileUtils.copyFileToDirectory(src, tmpDockerContextFolder);
730730
}

0 commit comments

Comments
 (0)