-
Notifications
You must be signed in to change notification settings - Fork 6
/
Dockerfile
40 lines (28 loc) · 1.09 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
FROM golang:stretch
RUN apt-get update && \
apt-get -y install git unzip build-essential autoconf libtool
RUN git clone https://github.com/google/protobuf.git && \
cd protobuf && \
./autogen.sh && \
./configure --prefix=/usr && \
make && \
make install && \
ldconfig && \
make clean && \
cd .. && \
rm -r protobuf
# NOTE: for now, this docker image always builds the current HEAD version of
# gRPC. After gRPC's beta release, the Dockerfile versions will be updated to
# build a specific version.
RUN go get google.golang.org/grpc
RUN go get -u github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway
RUN go get -u github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger
RUN go get github.com/golang/protobuf/protoc-gen-go
RUN cp /go/bin/protoc-gen-go /usr/bin/
RUN protoc --version
# Get the source from GitHub
# Install protoc-gen-go
RUN git config --global url."[email protected]:".insteadOf "https://gitlab.com/"
RUN git config --global url."[email protected]:".insteadOf "https://github.com/"
COPY "entrypoint.sh" "/entrypoint.sh"
ENTRYPOINT ["/entrypoint.sh"]