mtfosbot/Dockerfile

14 lines
440 B
Docker
Raw Normal View History

2018-09-19 12:23:39 +00:00
FROM golang:1.11-alpine3.8 as builder
WORKDIR /go/src/git.trj.tw/golang/mtfosbot
2018-09-20 14:28:19 +00:00
RUN apk add --no-cache make git \
&& go get -u github.com/otakukaze/go-bindata/...
2018-09-19 12:23:39 +00:00
COPY . .
RUN make
2018-09-19 12:23:39 +00:00
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"]