github.com/dean7474/operator-registry@v1.21.1-0.20220418203638-d4717f98c2e5/codegen.Dockerfile (about) 1 FROM golang:1.17-alpine 2 3 RUN apk update && \ 4 apk add make git protobuf 5 6 ENV MODULE google.golang.org 7 ENV SRC ${GOPATH}/src/${MODULE} 8 COPY vendor/${MODULE} ${SRC} 9 RUN echo $(ls ${SRC}) 10 RUN go install ${SRC}/protobuf/proto ${SRC}/protobuf/cmd/protoc-gen-go ${SRC}/grpc/cmd/protoc-gen-go-grpc 11 12 13 WORKDIR /codegen 14 15 COPY pkg pkg 16 COPY Makefile Makefile 17 RUN make codegen 18 19 LABEL maintainer="Odin Team <aos-odin@redhat.com>"