add official Dockerfile (#104)

This commit is contained in:
Joshua Humphries
2019-07-03 15:57:24 -04:00
committed by GitHub
parent 80425d1b17
commit 5631bba117
4 changed files with 42 additions and 1 deletions

View File

@@ -8,6 +8,7 @@ import (
"fmt"
"io"
"os"
"path/filepath"
"strings"
"time"
@@ -161,7 +162,7 @@ func main() {
os.Exit(0)
}
if *printVersion {
fmt.Fprintf(os.Stderr, "%s %s\n", os.Args[0], version)
fmt.Fprintf(os.Stderr, "%s %s\n", filepath.Base(os.Args[0]), version)
os.Exit(0)
}