Compile grpc-swift plugins in Dockerfile
This commit is contained in:
14
Dockerfile
14
Dockerfile
@@ -8,6 +8,16 @@ RUN git clone -b ${CGRPC_VERSION} --recursive https://github.com/grpc/grpc
|
||||
|
||||
RUN cd grpc && make plugins -j 12
|
||||
|
||||
FROM vato.ddns.net:8083/swift AS SWIFT_BUILDER
|
||||
|
||||
ARG GRPC_SWIFT_VERSION=1.0.0-alpha.21
|
||||
|
||||
RUN git clone -b ${GRPC_SWIFT_VERSION} https://github.com/grpc/grpc-swift.git grpc-swift
|
||||
|
||||
COPY ./build_grpc_swift_plugins_static.sh grpc-swift/
|
||||
|
||||
RUN cd grpc-swift && chmod +x build_grpc_swift_plugins_static.sh && ./build_grpc_swift_plugins_static.sh && rm -rf .build
|
||||
|
||||
FROM vato.ddns.net:8083/alpine
|
||||
|
||||
ARG ARCH=x86_64
|
||||
@@ -31,8 +41,6 @@ RUN rm protoc-gen-grpc-web-*.sha256 && \
|
||||
mv protoc-gen-grpc-web-* /usr/bin/protoc-gen-grpc-web && \
|
||||
chmod +x /usr/bin/protoc-gen-grpc-web
|
||||
|
||||
COPY ./protoc-gen-* /usr/bin/
|
||||
|
||||
COPY --from=CGRPC_BUILDER /grpc/bins/opt/grpc_python_plugin /usr/bin/protoc-gen-grpc-python
|
||||
|
||||
ENTRYPOINT ["protoc"]
|
||||
COPY --from=SWIFT_BUILDER /grpc-swift/protoc-gen-* /usr/bin/
|
||||
|
||||
Reference in New Issue
Block a user