FROM golang:1.9.6-alpine as build RUN apk add --update git RUN go get -u github.com/maxzender/jv FROM scratch COPY --from=build /go/bin/jv /bin/jv ENTRYPOINT ["/bin/jv"] # CMD ["--help"]