FROM golang:1.16 AS build
WORKDIR /root/
COPY . .
RUN go build -o coverage ./cmd/ci
FROM golang:1.16
COPY --from=build /root/coverage .
CMD ["/root/coverage"]