File tree 2 files changed +7
-10
lines changed
2 files changed +7
-10
lines changed Original file line number Diff line number Diff line change 1
1
# syntax=docker/dockerfile:1.5
2
2
FROM golang:1.19 as builder
3
3
4
- RUN git clone https://github.com/grpc/grpc-go.git
5
-
6
- WORKDIR /go/grpc-go/examples/route_guide/server
7
-
8
- RUN sed -i -e 's/localhost//g' server.go
9
- RUN CGO_ENABLED=0 go build -o /grpc_server server.go
4
+ RUN GO111MODULE=off go get google.golang.org/grpc/examples/helloworld/greeter_server
5
+ WORKDIR /go/src/google.golang.org/grpc/examples/helloworld/greeter_server
6
+ RUN CGO_ENABLED=0 go build -o /greeter_server
10
7
11
8
FROM scratch
12
- COPY --from=builder /grpc_server /
13
- CMD ["/grpc_server " ]
9
+ COPY --from=builder /greeter_server /
10
+ CMD ["/greeter_server " ]
Original file line number Diff line number Diff line change 1
1
# gRPC Server
2
2
3
- From https://github.com/grpc/grpc-go/tree/master/examples/route_guide
3
+ From https://github.com/grpc/grpc-go/tree/master/examples/helloworld/greeter_server
4
4
5
- The server runs on port 10000 .
5
+ The server runs on port 50051 .
You can’t perform that action at this time.
0 commit comments