fix: go-grpc Dockerfile (#8001)
Signed-off-by: Jintao Zhang <zhangjintao9020@gmail.com>
This commit is contained in:
parent
a03895d91e
commit
e621c6e973
1 changed files with 1 additions and 1 deletions
|
@ -2,7 +2,7 @@ FROM golang:buster as build
|
||||||
|
|
||||||
WORKDIR /go/src/greeter-server
|
WORKDIR /go/src/greeter-server
|
||||||
|
|
||||||
RUN curl -o main.go https://github.com/grpc/grpc-go/blob/91e0aeb192456225adf27966d04ada4cf8599915/examples/features/reflection/server/main.go && \
|
RUN curl -o main.go https://raw.githubusercontent.com/grpc/grpc-go/91e0aeb192456225adf27966d04ada4cf8599915/examples/features/reflection/server/main.go && \
|
||||||
go mod init greeter-server && \
|
go mod init greeter-server && \
|
||||||
go mod tidy && \
|
go mod tidy && \
|
||||||
go build -o /greeter-server main.go
|
go build -o /greeter-server main.go
|
||||||
|
|
Loading…
Reference in a new issue