From fc89358333b78e4c7cc3065ace56b8b0bf5e96c5 Mon Sep 17 00:00:00 2001 From: fabiankramm Date: Fri, 19 Oct 2018 13:59:01 +0200 Subject: [PATCH] Fix issue in get ports from dockerfile --- pkg/util/dockerfile/get.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {