add line webhook router

This commit is contained in:
root committed 2019-01-03 15:58:32 +08:00
1 parent 9d9fe262f4
commit 4726070ea5
19 files changed
+969 -142

No files matched your search

+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"]