fblook/Dockerfile

12 lines
355 B
Docker
Raw Normal View History

2018-09-21 14:58:41 +00:00
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"]