Skip to content

Commit 77530ea

Browse files
committed
Merge branch 'bugfix/dless' into 'main'
fix distroless entrypoint arg See merge request flarenetwork/network/go-flare!2
2 parents 8e513f6 + 6ed87de commit 77530ea

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

entrypoint/main.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,9 @@ func main() {
189189
os.Setenv("BOOTSTRAP_IDS", bootstrap_IDs)
190190
}
191191

192+
path := "/app/build/avalanchego"
192193
args := []string{
194+
path, // argv[0] must be the program name
193195
"--http-host", os.Getenv("HTTP_HOST"),
194196
"--http-port", os.Getenv("HTTP_PORT"),
195197
"--staking-port", os.Getenv("STAKING_PORT"),
@@ -209,7 +211,6 @@ func main() {
209211
args = append(args, strings.Fields(extra)...)
210212
}
211213
fmt.Fprintln(os.Stderr, args)
212-
path := "/app/build/avalanchego"
213214

214215
if _, err := os.Stat(path); errors.Is(err, os.ErrNotExist) {
215216
fmt.Fprintln(os.Stderr, "file does not exist")

0 commit comments

Comments
 (0)