github.com/Oyster-zx/tendermint@v0.34.24-fork/tools/proto/Dockerfile (about) 1 FROM bufbuild/buf:latest as buf 2 3 FROM golang:1.14-alpine3.11 as builder 4 5 RUN apk add --update --no-cache build-base curl git upx && \ 6 rm -rf /var/cache/apk/* 7 8 ENV GOLANG_PROTOBUF_VERSION=1.3.1 \ 9 GOGO_PROTOBUF_VERSION=1.3.2 10 11 RUN GO111MODULE=on go get \ 12 github.com/golang/protobuf/protoc-gen-go@v${GOLANG_PROTOBUF_VERSION} \ 13 github.com/gogo/protobuf/protoc-gen-gogo@v${GOGO_PROTOBUF_VERSION} \ 14 github.com/gogo/protobuf/protoc-gen-gogofaster@v${GOGO_PROTOBUF_VERSION} && \ 15 mv /go/bin/protoc-gen-go* /usr/local/bin/ 16 17 18 FROM alpine:edge 19 20 WORKDIR /work 21 22 RUN echo 'http://dl-cdn.alpinelinux.org/alpine/edge/testing' >> /etc/apk/repositories && \ 23 apk add --update --no-cache clang && \ 24 rm -rf /var/cache/apk/* 25 26 COPY --from=builder /usr/local/bin /usr/local/bin 27 COPY --from=buf /usr/local/bin /usr/local/bin