FROM golang:1.11-alpine3.8 as builder WORKDIR /go/src/git.trj.tw/golang/fblook RUN apk add --no-cache make git COPY . . RUN make FROM alpine:latest RUN apk add --no-cache ca-certificates WORKDIR /data COPY --from=builder /go/src/git.trj.tw/golang/fblook/fblook /usr/bin COPY config.default.yml config.yml CMD ["/usr/bin/fblook", "-f", "/data/config.yml"]