Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (11 sloc) 481 Bytes
FROM golang:alpine AS build
WORKDIR /go/src/github.com/urcomputeringpal/kubevalidator
COPY ./vendor ./vendor
RUN go install -v ./vendor/...
COPY . .
RUN CGO_ENABLED=0 go test -v github.com/urcomputeringpal/kubevalidator/...
RUN CGO_ENABLED=0 go install -v github.com/urcomputeringpal/kubevalidator
FROM alpine
RUN apk update && apk add ca-certificates && rm -rf /var/cache/apk/*
COPY --from=build /go/bin/kubevalidator /go/bin/kubevalidator
ENTRYPOINT ["/go/bin/kubevalidator"]