2019-03-27 13:38:58 +00:00
|
|
|
FROM golang:1.12.1-alpine as builder
|
2019-04-01 09:20:25 +00:00
|
|
|
WORKDIR /data
|
2019-05-28 03:25:45 +00:00
|
|
|
RUN apk add --no-cache make git
|
2018-09-19 12:23:39 +00:00
|
|
|
COPY . .
|
2018-09-20 12:35:04 +00:00
|
|
|
RUN make
|
2018-09-19 12:23:39 +00:00
|
|
|
|
|
|
|
FROM alpine:latest
|
|
|
|
RUN apk add --no-cache ca-certificates
|
|
|
|
WORKDIR /data
|
2019-04-01 09:20:25 +00:00
|
|
|
COPY --from=builder /data/mtfosbot /usr/bin
|
2018-09-19 12:23:39 +00:00
|
|
|
COPY config.default.yml config.yml
|
|
|
|
EXPOSE 10230
|
2019-03-27 13:38:58 +00:00
|
|
|
CMD ["/usr/bin/mtfosbot", "-f", "/data/config.yml", "-dbtool"]
|