fix: go-grpc Dockerfile (#8001)

Signed-off-by: Jintao Zhang <zhangjintao9020@gmail.com>
This commit is contained in:
Jintao Zhang 2021-12-01 09:35:18 +08:00 committed by GitHub
parent a03895d91e
commit e621c6e973
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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