annotate Dockerfile @ 7:4a4b9a3837c7 default tip

...
author anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
date Sat, 23 May 2020 10:36:15 +0900
parents 568ffe87c352
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
568ffe87c352 impl docker-compose go-grpc project example
anatofuz
parents:
diff changeset
1 FROM golang:1.13.1
568ffe87c352 impl docker-compose go-grpc project example
anatofuz
parents:
diff changeset
2
568ffe87c352 impl docker-compose go-grpc project example
anatofuz
parents:
diff changeset
3 RUN apt-get update && apt-get install -y unzip
568ffe87c352 impl docker-compose go-grpc project example
anatofuz
parents:
diff changeset
4
568ffe87c352 impl docker-compose go-grpc project example
anatofuz
parents:
diff changeset
5 # Install protobuf
568ffe87c352 impl docker-compose go-grpc project example
anatofuz
parents:
diff changeset
6 # @see https://github.com/yoshi42662/go-grpc/blob/master/server/Dockerfile
568ffe87c352 impl docker-compose go-grpc project example
anatofuz
parents:
diff changeset
7 RUN mkdir -p /tmp/protoc && \
568ffe87c352 impl docker-compose go-grpc project example
anatofuz
parents:
diff changeset
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 && \
568ffe87c352 impl docker-compose go-grpc project example
anatofuz
parents:
diff changeset
9 cd /tmp/protoc && \
568ffe87c352 impl docker-compose go-grpc project example
anatofuz
parents:
diff changeset
10 unzip protoc.zip && \
568ffe87c352 impl docker-compose go-grpc project example
anatofuz
parents:
diff changeset
11 cp /tmp/protoc/bin/protoc /usr/local/bin && \
568ffe87c352 impl docker-compose go-grpc project example
anatofuz
parents:
diff changeset
12 chmod go+rx /usr/local/bin/protoc && \
568ffe87c352 impl docker-compose go-grpc project example
anatofuz
parents:
diff changeset
13 cd /tmp && \
568ffe87c352 impl docker-compose go-grpc project example
anatofuz
parents:
diff changeset
14 rm -r /tmp/protoc
568ffe87c352 impl docker-compose go-grpc project example
anatofuz
parents:
diff changeset
15
568ffe87c352 impl docker-compose go-grpc project example
anatofuz
parents:
diff changeset
16 WORKDIR /study-grpc
568ffe87c352 impl docker-compose go-grpc project example
anatofuz
parents:
diff changeset
17 COPY . /study-grpc