File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ ARG GO_VERSION
4
4
ARG RUST_VERSION
5
5
ARG SWIFT_VERSION
6
6
ARG NODE_VERSION
7
+ ARG GOTEMPLATE_VERSION
7
8
8
9
FROM alpine:${ALPINE_VERSION} as protoc_builder
9
10
RUN apk add --no-cache build-base curl automake autoconf libtool git zlib-dev linux-headers cmake ninja
@@ -205,6 +206,7 @@ RUN mkdir -p /dart-protobuf && \
205
206
cd /dart-protobuf/protoc_plugin && pub install && dart2native --verbose bin/protoc_plugin.dart -o protoc_plugin && \
206
207
install -D /dart-protobuf/protoc_plugin/protoc_plugin /out/usr/bin/protoc-gen-dart
207
208
209
+ FROM moul/protoc-gen-gotemplate:v${GOTEMPLATE_VERSION} as protoc_gotemplate
208
210
209
211
FROM alpine:${ALPINE_VERSION} as packer
210
212
RUN apk add --no-cache curl
@@ -218,6 +220,7 @@ COPY --from=go_builder /out/ /out/
218
220
COPY --from=rust_builder /out/ /out/
219
221
COPY --from=swift_builder /protoc-gen-swift /out/protoc-gen-swift
220
222
COPY --from=dart_builder /out/ /out/
223
+ COPY --from=protoc_gotemplate /go/bin/protoc-gen-gotemplate /out/usr/bin/
221
224
RUN upx --lzma $(find /out/usr/bin/ \
222
225
-type f -name 'grpc_*' \
223
226
-not -name 'grpc_csharp_plugin' \
Original file line number Diff line number Diff line change @@ -27,4 +27,5 @@ docker build \
27
27
--build-arg TS_PROTOC_GEN_VERSION=" ${TS_PROTOC_GEN_VERSION:- " 0.14.0" } " \
28
28
--build-arg UPX_VERSION=" ${UPX_VERSION:- " 3.96" } " \
29
29
--build-arg JSONSCHEMA_VERSION=" ${JSONSCHEMA_VERSION:- " 1.3.1" } " \
30
+ --build-arg GOTEMPLATE_VERSION=" ${GOTEMPLATE_VERSION:- " 1.11.2" } " \
30
31
${@ } .
You can’t perform that action at this time.
0 commit comments