| 1 |
ARG GO_BASE # no default |
| 2 |
|
| 3 |
FROM ${GO_BASE} |
| 4 |
|
| 5 |
COPY /protos /protobuf-specs |
| 6 |
COPY --from=protoc-base:go /grpc-gateway /grpc-gateway |
| 7 |
|
| 8 |
# just add the plugins for grpc-gateway and openapiv2 into the entrypoint |
| 9 |
ENTRYPOINT ["/usr/local/bin/protoc", \ |
| 10 |
"--plugin=protoc-gen-go=/usr/local/bin/protoc-gen-go", \ |
| 11 |
"--plugin=protoc-gen-go-grpc=/usr/local/bin/protoc-gen-go-grpc", \ |
| 12 |
"--plugin=protoc-gen-grpc-gateway=/usr/local/bin/protoc-gen-grpc-gateway", \ |
| 13 |
"--plugin=protoc-gen-openapiv2=/usr/local/bin/protoc-gen-openapiv2" \ |
| 14 |
] |