https://github.com/navono/proto-compiler-docker
Dockerfile for compile proto file
https://github.com/navono/proto-compiler-docker
dockerfile protobuf
Last synced: 9 days ago
JSON representation
Dockerfile for compile proto file
- Host: GitHub
- URL: https://github.com/navono/proto-compiler-docker
- Owner: navono
- License: mit
- Created: 2019-06-06T04:38:26.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-06-06T06:06:05.000Z (over 6 years ago)
- Last Synced: 2025-06-04T05:14:59.004Z (8 months ago)
- Topics: dockerfile, protobuf
- Language: Dockerfile
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# proto-compiler-docker
Compile `.proto` files with Docker.
## dev
> docker build -t proto-compiler:latest .
## Usage
> $ export protoCompiler="proto-compiler:latest"
>
> $ docker run -v $(pwd):/repo $(protoCompiler) \
protoc -Irepo/proto -Irepo/third_party \
--js_out=import_style=commonjs,binary:/repo/out \
--ts_out=service=true:/repo/out \
--go_out=plugins=grpc:/repo/out \
--grpc-gateway_out=logtostderr=true:/repo/out \
--swagger_out=logtostderr=true:/repo/out/swagger \
--lint_out=. \
repo/proto/test.proto
## License
MIT