|
1 |
| -FROM alpine:3.7 as protoc_builder |
| 1 | +FROM alpine:3.8 as protoc_builder |
2 | 2 | RUN apk add --no-cache build-base curl automake autoconf libtool git zlib-dev
|
3 | 3 |
|
4 | 4 | ENV GRPC_VERSION=1.16.0 \
|
@@ -66,8 +66,10 @@ RUN go get -u -v -ldflags '-w -s' \
|
66 | 66 | github.com/johanbrandhorst/protobuf/protoc-gen-gopherjs \
|
67 | 67 | github.com/ckaznocha/protoc-gen-lint \
|
68 | 68 | github.com/mwitkow/go-proto-validators/protoc-gen-govalidators \
|
| 69 | + github.com/lyft/protoc-gen-validate \ |
69 | 70 | moul.io/protoc-gen-gotemplate \
|
70 | 71 | github.com/micro/protoc-gen-micro \
|
| 72 | + && (cd ${GOPATH}/src/github.com/lyft/protoc-gen-validate && make build) \ |
71 | 73 | && install -c ${GOPATH}/bin/protoc-gen* ${OUTDIR}/usr/bin/
|
72 | 74 |
|
73 | 75 | RUN mkdir -p ${GOPATH}/src/github.com/pseudomuto/protoc-gen-doc && \
|
@@ -166,6 +168,10 @@ RUN apk add --no-cache curl && \
|
166 | 168 | curl -L -o /protobuf/github.com/gogo/protobuf/gogoproto/gogo.proto https://raw.githubusercontent.com/gogo/protobuf/master/gogoproto/gogo.proto && \
|
167 | 169 | mkdir -p /protobuf/github.com/mwitkow/go-proto-validators && \
|
168 | 170 | curl -L -o /protobuf/github.com/mwitkow/go-proto-validators/validator.proto https://raw.githubusercontent.com/mwitkow/go-proto-validators/master/validator.proto && \
|
| 171 | + mkdir -p /protobuf/github.com/lyft/protoc-gen-validate/gogoproto && \ |
| 172 | + mkdir -p /protobuf/github.com/lyft/protoc-gen-validate/validate && \ |
| 173 | + curl -L -o /protobuf/github.com/lyft/protoc-gen-validate/gogoproto/gogo.proto https://raw.githubusercontent.com/lyft/protoc-gen-validate/master/gogoproto/gogo.proto && \ |
| 174 | + curl -L -o /protobuf/github.com/lyft/protoc-gen-validate/validate/validate.proto https://raw.githubusercontent.com/lyft/protoc-gen-validate/master/validate/validate.proto && \ |
169 | 175 | apk del curl
|
170 | 176 |
|
171 | 177 | ENTRYPOINT ["/usr/bin/protoc", "-I/protobuf"]
|
0 commit comments