Update to the latest dependency versions and use distroless/static:nonroot image

This commit is contained in:
Milad Arab
2022-11-03 08:04:20 +00:00
parent 76cd1a28e6
commit 4068548ec5
26 changed files with 1084 additions and 571 deletions
+15
View File
@@ -0,0 +1,15 @@
//go:build darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris
// +build darwin dragonfly freebsd linux netbsd openbsd solaris
package env
import "strings"
func toMap(env []string) map[string]string {
r := map[string]string{}
for _, e := range env {
p := strings.SplitN(e, "=", 2)
r[p[0]] = p[1]
}
return r
}