Skip to content

Commit

Permalink
Merge pull request #303 from covexo/improve-up
Browse files Browse the repository at this point in the history
Fix issue in get ports from dockerfile
  • Loading branch information
FabianKramm authored Oct 19, 2018
2 parents 0d00dfb + fc89358 commit 46794ca
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 46794ca

Please sign in to comment.