File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 1- FROM golang:1.14 AS builder
2-
3- RUN mkdir -p github.com/yannh/kubeconform
4- COPY . github.com/yannh/kubeconform/
5- WORKDIR github.com/yannh/kubeconform
6- RUN make build-static
1+ FROM alpine:latest as certs
2+ RUN apk add ca-certificates
73
84FROM scratch AS kubeconform
95MAINTAINER Yann HAMON <
[email protected] >
10- COPY --from=builder /go/github.com/yannh/kubeconform/bin/kubeconform /
6+ COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
7+ COPY bin/kubeconform /
118ENTRYPOINT ["/kubeconform" ]
Original file line number Diff line number Diff line change 11# !/usr/bin/make -f
22
3- .PHONY : test-build test build build-static docker-test docker-build-static build-bats docker-acceptance
3+ .PHONY : test-build test build build-static docker-test docker-build-static build-bats docker-acceptance docker-image
44
55test-build : test build
66
1010build :
1111 go build -o bin/kubeconform
1212
13+ docker-image :
14+ docker build -t kubeconform .
15+
1316build-static :
1417 CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on go build -a -o bin/kubeconform
1518
You can’t perform that action at this time.
0 commit comments