diff --git a/Dockerfile b/Dockerfile index ac9e978..3764c71 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,10 @@ FROM golang ENV CGO_ENABLED=0 -RUN go get github.com/mingrammer/flog +ENV GO111MODULE=on +COPY . $GOPATH/src/github.com/flog +WORKDIR $GOPATH/src/github.com/flog +RUN go build -mod=vendor FROM scratch -COPY --from=0 /go/bin/flog /bin/flog +COPY --from=0 /go/src/github.com/flog/flog /bin/flog ENTRYPOINT ["flog"]