Skip to content

Commit

Permalink
Support grpc-gateway (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
kanziw authored Oct 30, 2021
1 parent 7b4f443 commit 7f42a07
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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 && \
Expand Down

0 comments on commit 7f42a07

Please sign in to comment.