What's in the package:
- protoc (github.com/protocolbuffers/protobuf)
- pbjs, pbts (npmjs.com/package/protobufjs)
- ts-protoc-gen
- buf
Mount your project directory into the container's /mnt
- TODO: Better examples
- TODO: Multiple architectures
- TODO: Publish to GitHub's registries
- TODO: squash final image
Example usage:
docker run --rm -v $PWD:/mnt themakers/protoc:latest protoc --proto_path=proto-defs --go_out=. --go_opt=paths=source_relative proto-defs/my.proto
//go:generate docker run --rm -v $PWD:/mnt themakers/protoc:latest protoc --proto_path=proto-defs --go_out=. --go_opt=paths=source_relative proto-defs/my.proto