github.com/cosmos/cosmos-proto@v1.0.0-beta.3/Dockerfile (about)

     1  FROM golang:1.18-alpine
     2  
     3  ENV GOLANG_PROTOBUF_VERSION=1.28.1
     4  
     5  ARG PROTOC_VERSION="3.20.0"
     6  # add dependency
     7  RUN apk add g++ make curl protoc git
     8  # sanity check to verify its correctly installed
     9  RUN protoc --version
    10  # install
    11  RUN go install google.golang.org/protobuf/cmd/protoc-gen-go@v${GOLANG_PROTOBUF_VERSION}
    12  RUN go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
    13  
    14  WORKDIR /build
    15  COPY . ./
    16  
    17  RUN go build -o protoc-gen-go-pulsar ./cmd/protoc-gen-go-pulsar
    18  
    19  WORKDIR /codegen
    20  
    21  RUN mv /build/protoc-gen-go-pulsar /usr/bin/protoc-gen-go-pulsar