Skip to content

Commit

Permalink
Fix issue in get ports from dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
FabianKramm committed Oct 19, 2018
1 parent 3c01dcf commit fc89358
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/util/dockerfile/get.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit fc89358

Please sign in to comment.