diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..b4bfa98 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,11 @@ +FROM golang:1.14 AS builder + +RUN mkdir -p github.com/yannh/kubeconform +COPY . github.com/yannh/kubeconform/ +WORKDIR github.com/yannh/kubeconform +RUN make build-static + +FROM scratch AS kubeconform +MAINTAINER Yann HAMON +COPY --from=builder /go/github.com/yannh/kubeconform/bin/kubeconform / +ENTRYPOINT ["/kubeconform"] \ No newline at end of file