diff --git a/pkg/util/dockerfile/get.go b/pkg/util/dockerfile/get.go index 786c80d4bc..7b40110c36 100644 --- a/pkg/util/dockerfile/get.go +++ b/pkg/util/dockerfile/get.go @@ -8,7 +8,7 @@ import ( "strings" ) -var findExposePortsRegEx = regexp.MustCompile("$EXPOSE\\s(.*)^") +var findExposePortsRegEx = regexp.MustCompile("^EXPOSE\\s(.*)$") // GetPorts retrieves all the exported ports from a dockerfile func GetPorts(filename string) ([]int, error) {