0
|
1 FROM golang:1.13.1
|
|
2
|
|
3 RUN apt-get update && apt-get install -y unzip
|
|
4
|
|
5 # Install protobuf
|
|
6 # @see https://github.com/yoshi42662/go-grpc/blob/master/server/Dockerfile
|
|
7 RUN mkdir -p /tmp/protoc && \
|
|
8 curl -L https://github.com/protocolbuffers/protobuf/releases/download/v3.10.0/protoc-3.10.0-linux-x86_64.zip > /tmp/protoc/protoc.zip && \
|
|
9 cd /tmp/protoc && \
|
|
10 unzip protoc.zip && \
|
|
11 cp /tmp/protoc/bin/protoc /usr/local/bin && \
|
|
12 chmod go+rx /usr/local/bin/protoc && \
|
|
13 cd /tmp && \
|
|
14 rm -r /tmp/protoc
|
|
15
|
|
16 WORKDIR /study-grpc
|
|
17 COPY . /study-grpc
|