Dockerfile 632 B

12345678910111213141516171819
  1. FROM swiftdocker/swift:latest
  2. MAINTAINER Tim Burks <timburks@google.com>
  3. # Install a few needed packages that aren't in swiftdocker/swift
  4. RUN apt-get -q update && \
  5. apt-get -q install -y libz-dev && \
  6. apt-get -q install -y unzip
  7. # Install protoc
  8. RUN curl -O -L https://github.com/google/protobuf/releases/download/v3.2.0/protoc-3.2.0-linux-x86_64.zip && \
  9. unzip protoc-3.2.0-linux-x86_64.zip -d /usr
  10. # Build and install the swiftgrpc plugin
  11. RUN git clone https://github.com/grpc/grpc-swift && \
  12. cd grpc-swift/Plugin && \
  13. make && \
  14. cp protoc-gen-swift /usr/bin && \
  15. cp protoc-gen-swiftgrpc /usr/bin