diff --git a/Dockerfile b/Dockerfile index dc0a0b4..c197975 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ FROM golang:1.11-alpine3.8 as builder WORKDIR /go/src/git.trj.tw/golang/mtfosbot -RUN apk add --no-cache make git -RUN go get -u github.com/otakukaze/go-bindata/... +RUN apk add --no-cache make git \ + && go get -u github.com/otakukaze/go-bindata/... COPY . . RUN make diff --git a/main.go b/main.go index d9f13c4..cc600d8 100644 --- a/main.go +++ b/main.go @@ -4,6 +4,7 @@ import ( "encoding/gob" "errors" "flag" + "fmt" "log" "os" "path" @@ -42,6 +43,8 @@ func main() { log.Fatal(err) } + fmt.Println("load config ::::", config.GetConf()) + // connect to database db, err := model.NewDB() if err != nil {