github.com/dmaizel/tests@v0.0.0-20210728163746-cae6a2d9cee8/kata-webhook/Dockerfile (about) 1 # Copyright (c) 2019 Intel Corporation 2 # 3 # SPDX-License-Identifier: Apache-2.0 4 FROM golang:latest AS builder 5 6 WORKDIR /go/src/kata-pod-annotate 7 8 COPY ../vendor ./ 9 COPY . ./ 10 RUN CGO_ENABLED=0 go build -o /go/bin/kata-pod-annotate 11 12 FROM alpine:latest 13 COPY --from=builder /go/bin/kata-pod-annotate /kata-pod-annotate 14 ENTRYPOINT ["/kata-pod-annotate"] 15