Skip to content

Commit fb61577

Browse files
authored
Clear entrypoint when setting command (#77)
If a builder image has an entrypoint (say via inheritance from it's base builder image) then in order for the snowdrop buildpack lib to function correctly, we must wipe the entrypoint when setting the command, else we'll invoke the wrong thing.
1 parent c117151 commit fb61577

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

client/src/main/java/dev/snowdrop/buildpack/docker/ContainerUtils.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ private static String createContainerInternal(DockerClient dc, String imageRefer
107107

108108
if (command != null) {
109109
ccc.withCmd(command);
110+
ccc.withEntrypoint("");
110111
}
111112

112113
if (network!=null){

0 commit comments

Comments
 (0)