File: Dockerfile.services

package info (click to toggle)
golang-github-sigstore-protobuf-specs 0.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental, forky, sid
  • size: 2,104 kB
  • sloc: makefile: 126; sh: 124; ruby: 7
file content (13 lines) | stat: -rw-r--r-- 507 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
ARG GO_BASE # no default

FROM ${GO_BASE}

COPY /protos /protobuf-specs

# just add the plugins for grpc-gateway and openapiv2 into the entrypoint
ENTRYPOINT ["/usr/local/bin/protoc", \
            "--plugin=protoc-gen-go=/usr/local/bin/protoc-gen-go", \
            "--plugin=protoc-gen-go-grpc=/usr/local/bin/protoc-gen-go-grpc", \
            "--plugin=protoc-gen-grpc-gateway=/usr/local/bin/protoc-gen-grpc-gateway", \
            "--plugin=protoc-gen-openapiv2=/usr/local/bin/protoc-gen-openapiv2" \
]