mtgbot/Dockerfile

15 lines
432 B
Docker
Raw Permalink Normal View History

2018-12-24 09:34:24 +00:00
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"]