add flag options, add schema submodule

This commit is contained in:
Jay
2018-09-19 20:23:39 +08:00
parent e86171151a
commit a43bf98e21
7 changed files with 71 additions and 2 deletions
+12
View File
@@ -0,0 +1,12 @@
FROM golang:1.11-alpine3.8 as builder
WORKDIR /go/src/git.trj.tw/golang/mtfosbot
COPY . .
RUN GOOS=linux go build -o mtfosbot .
FROM alpine:latest
RUN apk add --no-cache ca-certificates
WORKDIR /data
COPY --from=builder /go/src/git.trj.tw/golang/mtfosbot/mtfosbot /usr/bin
COPY config.default.yml config.yml
EXPOSE 10230
CMD ["/usr/bin/mtfosbot", "-f", "/data/config.yml", "-dbtool"]