Dockerfile
FROM golang:1.13 as builder
ARG BUILDER_NAME
ARG BUILDER_EMAIL
ENV GOOS=linux GOARCH=amd64 CGO_ENABLED=0
COPY . /go/src/github.com/mrtazz/checkmake
WORKDIR /go/src/github.com/mrtazz/checkmake
RUN make binaries
RUN make test
FROM alpine:3.11
RUN apk add make
USER nobody
COPY --from=builder /go/src/github.com/mrtazz/checkmake/checkmake /
ENTRYPOINT ["./checkmake", "/Makefile"]