add line webhook router

This commit is contained in:
Jay
2018-12-24 17:34:24 +08:00
parent 9d9fe262f4
commit 4726070ea5
19 changed files with 969 additions and 142 deletions
+14
View File
@@ -0,0 +1,14 @@
FROM golang:1.11-alpine3.8 as builder
WORKDIR /go/src/git.trj.tw/golang/mtgbot
RUN apk add --no-cache make git \
&& go get -u github.com/otakukaze/go-bindata/...
COPY . .
RUN make
FROM alpine:latest
RUN apk add --no-cache ca-certificates
WORKDIR /data
COPY --from=builder /go/src/git.trj.tw/golang/mtgbot/mtgbot /usr/bin
COPY config.sample.yml config.yml
EXPOSE 10230
CMD ["/usr/bin/mtgbot", "-f", "/data/config.yml", "-dbtool"]