go-mgo.dockerfile 311 B

123456789101112131415
  1. FROM golang:1.12
  2. ENV GO111MODULE on
  3. WORKDIR /go-std
  4. COPY ./src /go-std
  5. RUN go get github.com/valyala/quicktemplate/qtc
  6. RUN go get -u github.com/mailru/easyjson/...
  7. RUN go mod download
  8. RUN go generate ./templates
  9. RUN go build -ldflags="-s -w" -o app .
  10. CMD ./app -db mgo -db_connection_string "tfb-database"