chore(docker): run as non root user in container (#727)

This commit is contained in:
Bo-Yi Wu
2023-02-28 11:47:56 +08:00
committed by GitHub
parent 5a8b7afa28
commit 7c039f9b37
2 changed files with 12 additions and 1 deletions

View File

@@ -29,9 +29,13 @@ func GetVersion() string {
// PrintGoRushVersion provide print server engine
func PrintGoRushVersion() {
if len(commit) > 7 {
commit = commit[:7]
}
fmt.Printf(`GoRush %s, Commit: %s, Compiler: %s %s, Copyright (C) 2023 Bo-Yi Wu, Inc.`,
version,
commit[:7],
commit,
runtime.Compiler,
runtime.Version())
fmt.Println()