docker: the docker image will now contain just the static binary

This commit is contained in:
Krishna Srinivas
2015-11-06 16:46:04 -08:00
parent 8ef4ec24ca
commit 440bec28d9
7 changed files with 94 additions and 49 deletions

View File

@@ -21,7 +21,6 @@ import (
"errors"
"fmt"
"os"
"os/user"
"path/filepath"
"github.com/fatih/color"
@@ -124,9 +123,9 @@ func getConfigPath() (string, *probe.Error) {
if customConfigPath != "" {
return customConfigPath, nil
}
u, err := user.Current()
u, err := userCurrent()
if err != nil {
return "", probe.NewError(err)
return "", err.Trace()
}
configPath := filepath.Join(u.HomeDir, ".minio")
return configPath, nil