From 7f42a07e67ce3e6240dec1394926ad0e602892c5 Mon Sep 17 00:00:00 2001 From: Jiwoong Jung Date: Sat, 30 Oct 2021 23:58:21 +0900 Subject: [PATCH] Support grpc-gateway (#3) --- Dockerfile | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Dockerfile b/Dockerfile index eeb276d..ca604af 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,18 @@ +FROM golang:1.17.2-alpine3.14 as golang + +WORKDIR /app + +ARG GO_GRPC_GATEWAY_VERSION=v2.6.0 + +RUN go install \ + github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-grpc-gateway@${GO_GRPC_GATEWAY_VERSION} \ + github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2@${GO_GRPC_GATEWAY_VERSION} + + FROM bufbuild/buf:1.0.0-rc6 +COPY --from=golang /go/bin/* /usr/local/bin + RUN apk add --update --no-cache \ nodejs=14.18.1-r0 \ npm=7.17.0-r0 && \