mirror of
https://github.com/ko-build/ko.git
synced 2026-06-18 20:14:08 +02:00
Clear Cmd when setting Entrypoint (#624)
See https://github.com/chainguard-dev/apko/issues/22
This commit is contained in:
@@ -776,6 +776,7 @@ func (g *gobuild) buildOne(ctx context.Context, refStr string, base v1.Image, pl
|
||||
|
||||
cfg = cfg.DeepCopy()
|
||||
cfg.Config.Entrypoint = []string{appPath}
|
||||
cfg.Config.Cmd = nil
|
||||
if platform.OS == "windows" {
|
||||
cfg.Config.Entrypoint = []string{`C:\ko-app\` + appFilename(ref.Path())}
|
||||
updatePath(cfg, `C:\ko-app`)
|
||||
|
||||
Reference in New Issue
Block a user