Skip to content

Commit

Permalink
[docker] remote Dockerfile-remote when not needed. Fixes #599
Browse files Browse the repository at this point in the history
  • Loading branch information
aalmiray committed Dec 12, 2021
1 parent 4339e13 commit a15a53a
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -81,6 +81,8 @@ protected void doPrepareDistribution(Distribution distribution,
Files.move(prepareDirectory.resolve("Dockerfile-remote"),
prepareDirectory.resolve("Dockerfile"),
REPLACE_EXISTING);
} else {
Files.deleteIfExists(prepareDirectory.resolve("Dockerfile-remote"));
}

return;
Expand All @@ -107,6 +109,8 @@ private void prepareSpec(Distribution distribution,
Files.move(prepareDirectory.resolve(spec.getName()).resolve("Dockerfile-remote"),
prepareDirectory.resolve(spec.getName()).resolve("Dockerfile"),
REPLACE_EXISTING);
} else {
Files.deleteIfExists(prepareDirectory.resolve("Dockerfile-remote"));
}
}

Expand Down

0 comments on commit a15a53a

Please sign in to comment.