Skip to content

Commit 46794ca

Browse files
authored
Merge pull request #303 from covexo/improve-up
Fix issue in get ports from dockerfile
2 parents 0d00dfb + fc89358 commit 46794ca

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/util/dockerfile/get.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"strings"
99
)
1010

11-
var findExposePortsRegEx = regexp.MustCompile("$EXPOSE\\s(.*)^")
11+
var findExposePortsRegEx = regexp.MustCompile("^EXPOSE\\s(.*)$")
1212

1313
// GetPorts retrieves all the exported ports from a dockerfile
1414
func GetPorts(filename string) ([]int, error) {

0 commit comments

Comments
 (0)