diff --git a/Dockerfile b/Dockerfile index e40300b2..2467de46 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,8 +2,8 @@ ARG BUILD_ARG_GO_VERSION=1.21 ARG BUILD_ARG_ALPINE_VERSION=3.18 FROM golang:${BUILD_ARG_GO_VERSION}-alpine${BUILD_ARG_ALPINE_VERSION} AS builder -# install tools (bash, git, protobuf, protoc-gen-go, protoc-grn-go-grpc) -RUN apk -U --no-cache add bash git protobuf curl &&\ +# install tools (git, protobuf, protoc-gen-go, protoc-grn-go-grpc) +RUN apk -U --no-cache add git protobuf curl &&\ go install -v -ldflags "-s -w" google.golang.org/protobuf/cmd/protoc-gen-go@latest &&\ go install -v -ldflags "-s -w" google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest &&\ # cloning well-known-types @@ -14,6 +14,7 @@ RUN apk -U --no-cache add bash git protobuf curl &&\ # cleanup rm -rf /protobuf-repo &&\ find /protobuf -not -name "*.proto" -type f -delete &&\ + find /googleapis -not -name "*.proto" -type f -delete &&\ apk del git &&\ apk -v cache clean