mirror of
https://github.com/yannh/kubeconform.git
synced 2026-02-24 04:07:02 +00:00
Add Dockerfile
This commit is contained in:
parent
93f7dbc83a
commit
75268c6440
1 changed files with 11 additions and 0 deletions
11
Dockerfile
Normal file
11
Dockerfile
Normal file
|
|
@ -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 <yann@mandragor.org>
|
||||||
|
COPY --from=builder /go/github.com/yannh/kubeconform/bin/kubeconform /
|
||||||
|
ENTRYPOINT ["/kubeconform"]
|
||||||
Loading…
Reference in a new issue