This commit is contained in:
Jay 2018-09-20 22:28:19 +08:00
parent 4cd21015f1
commit 0e0d2b94b6
2 changed files with 5 additions and 2 deletions

View File

@ -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

View File

@ -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 {